Fix logs getting spammed by HTTP requests

This commit is contained in:
nicolas.dorier 2019-03-07 19:29:32 +09:00
parent 0c0809101d
commit cd6ce401e1
2 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,7 @@ namespace BTCPayServer.Tests
{
s.AddLogging(l =>
{
l.AddFilter("System.Net.Http.HttpClient", LogLevel.Critical);
l.SetMinimumLevel(LogLevel.Information)
.AddFilter("Microsoft", LogLevel.Error)
.AddFilter("Hangfire", LogLevel.Error)

View File

@ -51,6 +51,7 @@ namespace BTCPayServer
.ConfigureLogging(l =>
{
l.AddFilter("Microsoft", LogLevel.Error);
l.AddFilter("System.Net.Http.HttpClient", LogLevel.Critical);
l.AddFilter("Microsoft.AspNetCore.Antiforgery.Internal", LogLevel.Critical);
l.AddProvider(new CustomConsoleLogProvider(processor));