diff --git a/include/ncs3sdk.h b/include/ncs3sdk.h index 2ca05754e..2ca27245a 100644 --- a/include/ncs3sdk.h +++ b/include/ncs3sdk.h @@ -6,6 +6,7 @@ #ifndef NCS3SDK_H #define NCS3SDK_H 1 + typedef struct NCS3INFO { char* host; /* non-null if other*/ char* region; /* region */ diff --git a/libdispatch/awsincludes.h b/libdispatch/awsincludes.h index b17572405..461cd9a9f 100644 --- a/libdispatch/awsincludes.h +++ b/libdispatch/awsincludes.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/libdispatch/ncs3sdk_aws.cpp b/libdispatch/ncs3sdk_aws.cpp index 5e3c3a3e9..bd7fef1a2 100644 --- a/libdispatch/ncs3sdk_aws.cpp +++ b/libdispatch/ncs3sdk_aws.cpp @@ -8,6 +8,8 @@ #define NOOP #define DEBUG + + #include "awsincludes.h" #include #include @@ -112,8 +114,11 @@ NC_s3sdkinitialize(void) if(!ncs3_initialized) { ncs3_initialized = 1; ncs3_finalized = 0; - NCTRACE(11,NULL); + + ncs3options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace; + ncs3options.loggingOptions.logger_create_fn = [] { return std::make_shared(Aws::Utils::Logging::LogLevel::Trace); }; Aws::InitAPI(ncs3options); + #ifdef DEBUG ncs3options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug; #endif