Skip to content

Commit

Permalink
use log.Debug instead for aws trace
Browse files Browse the repository at this point in the history
  • Loading branch information
karimz1 committed Dec 9, 2024
1 parent d581636 commit b840b89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/AwsServiceAuthenticator.Cli/SerilogTraceRedirect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion src/AwsServiceAuthenticator.Cli/ServiceConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ private static IServiceCollection RegisterLogging(this IServiceCollection servic
services.AddSingleton<ILogger, SerilogLogger>(_ => new SerilogLogger(logger));
return services;
}
}
}

0 comments on commit b840b89

Please sign in to comment.