fix: set minimum level for authorization and authentication to warning
All checks were successful
.NET Test Pipeline / build-and-test (push) Successful in 1m31s
Build and Deploy Docker Container / build-and-deploy (push) Successful in 1m47s

Signed-off-by: Polianin Nikita <wesser@noreply.git.winsomnia.net>
This commit is contained in:
Polianin Nikita 2024-12-23 10:53:32 +03:00
parent d505041c72
commit 97e50b5331

View File

@ -53,7 +53,9 @@ public static class LoggerConfiguration
configuration
.MinimumLevel.Override("Microsoft.AspNetCore.Hosting", LogEventLevel.Warning)
.MinimumLevel.Override("Microsoft.AspNetCore.Mvc", LogEventLevel.Warning)
.MinimumLevel.Override("Microsoft.AspNetCore.Routing", LogEventLevel.Warning);
.MinimumLevel.Override("Microsoft.AspNetCore.Routing", LogEventLevel.Warning)
.MinimumLevel.Override("Microsoft.AspNetCore.Authentication", LogEventLevel.Warning)
.MinimumLevel.Override("Microsoft.AspNetCore.Authorization", LogEventLevel.Warning);
configuration.Filter.ByExcluding(Matching.WithProperty<string>("SourceContext", sc =>
sc.Contains("Microsoft.EntityFrameworkCore.Database.Command")));