Fixed: Don't log handled exceptions in API

pull/1704/head
Bogdan 1 year ago
parent bf5855beb4
commit b59d89f308

@ -108,9 +108,10 @@ namespace NzbDrone.Common.Instrumentation
{ {
LogManager.Setup().LoadConfiguration(c => LogManager.Setup().LoadConfiguration(c =>
{ {
c.ForLogger("System.*").WriteToNil(LogLevel.Warn);
c.ForLogger("Microsoft.*").WriteToNil(LogLevel.Warn);
c.ForLogger("Microsoft.Hosting.Lifetime*").WriteToNil(LogLevel.Info); c.ForLogger("Microsoft.Hosting.Lifetime*").WriteToNil(LogLevel.Info);
c.ForLogger("System*").WriteToNil(LogLevel.Warn); c.ForLogger("Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware").WriteToNil(LogLevel.Fatal);
c.ForLogger("Microsoft*").WriteToNil(LogLevel.Warn);
}); });
} }

Loading…
Cancel
Save