From b840b893073eec998ed67007b7ca61a6b392a867 Mon Sep 17 00:00:00 2001 From: karimz1 Date: Mon, 9 Dec 2024 22:38:09 +0100 Subject: [PATCH] use log.Debug instead for aws trace --- src/AwsServiceAuthenticator.Cli/SerilogTraceRedirect.cs | 8 ++------ src/AwsServiceAuthenticator.Cli/ServiceConfiguration.cs | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/AwsServiceAuthenticator.Cli/SerilogTraceRedirect.cs b/src/AwsServiceAuthenticator.Cli/SerilogTraceRedirect.cs index 57174d1..89540bc 100644 --- a/src/AwsServiceAuthenticator.Cli/SerilogTraceRedirect.cs +++ b/src/AwsServiceAuthenticator.Cli/SerilogTraceRedirect.cs @@ -11,16 +11,12 @@ public class SerilogTraceRedirect(ILogger logger) : TraceListener public override void Write(string? message) { if (!string.IsNullOrEmpty(message)) - { - _logger.LogInformation(message); - } + _logger.LogDebug(message); } public override void WriteLine(string? message) { if (!string.IsNullOrEmpty(message)) - { - _logger.LogInformation(message); - } + _logger.LogDebug(message); } } \ No newline at end of file diff --git a/src/AwsServiceAuthenticator.Cli/ServiceConfiguration.cs b/src/AwsServiceAuthenticator.Cli/ServiceConfiguration.cs index 7146bb6..335491d 100644 --- a/src/AwsServiceAuthenticator.Cli/ServiceConfiguration.cs +++ b/src/AwsServiceAuthenticator.Cli/ServiceConfiguration.cs @@ -93,4 +93,4 @@ private static IServiceCollection RegisterLogging(this IServiceCollection servic services.AddSingleton(_ => new SerilogLogger(logger)); return services; } -} +} \ No newline at end of file