Add cvar for aws log level (#5507)
* Add cvar for aws log level Signed-off-by: onecent1101 <liug@amazon.com> * Remove old crysystem registered cmd and add safeguard to get cvar from console Signed-off-by: onecent1101 <liug@amazon.com> * Suppress error for client auth unit test as logging was routed to warning before Signed-off-by: onecent1101 <liug@amazon.com>
This commit is contained in:
@@ -64,10 +64,10 @@ namespace AWSNativeSDKInit
|
||||
{
|
||||
#if defined(PLATFORM_SUPPORTS_AWS_NATIVE_SDK)
|
||||
Aws::Utils::Logging::LogLevel logLevel;
|
||||
#ifdef _DEBUG
|
||||
#if defined(AZ_DEBUG_BUILD) || defined(AZ_PROFILE_BUILD)
|
||||
logLevel = Aws::Utils::Logging::LogLevel::Warn;
|
||||
#else
|
||||
logLevel = Aws::Utils::Logging::LogLevel::Warn;
|
||||
logLevel = Aws::Utils::Logging::LogLevel::Error;
|
||||
#endif
|
||||
m_awsSDKOptions.loggingOptions.logLevel = logLevel;
|
||||
m_awsSDKOptions.loggingOptions.logger_create_fn = [logLevel]()
|
||||
|
||||
Reference in New Issue
Block a user