Do not logs all internal events

This commit is contained in:
nicolas.dorier 2021-11-05 00:09:38 +09:00
parent 7e3cda904a
commit 82649dad39
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
5 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,7 @@ namespace BTCPayServer.Events
public override string ToString()
{
return string.Empty;
return $"Invoice {InvoiceId} needs update";
}
}
}

View File

@ -18,7 +18,7 @@ namespace BTCPayServer.Events
public override string ToString()
{
return string.Empty;
return $"Invoice payment method activated for invoice {InvoiceId} ({PaymentMethodId.ToPrettyString()})";
}
}
}

View File

@ -5,7 +5,7 @@ namespace BTCPayServer.Events
public T Settings { get; set; }
public override string ToString()
{
return Settings?.ToString() ?? string.Empty;
return $"Settings {typeof(T).Name} changed";
}
}
}

View File

@ -7,7 +7,7 @@ namespace BTCPayServer.Events
public WalletId WalletId { get; set; }
public override string ToString()
{
return String.Empty;
return $"Wallet {WalletId} changed";
}
}
}

View File

@ -45,6 +45,7 @@ namespace BTCPayServer
.ConfigureLogging(l =>
{
l.AddFilter("Microsoft", LogLevel.Error);
l.AddFilter("Events", LogLevel.Warning);
l.AddFilter("System.Net.Http.HttpClient", LogLevel.Critical);
l.AddFilter("Microsoft.AspNetCore.Antiforgery.Internal", LogLevel.Critical);
l.AddFilter("Fido2NetLib.DistributedCacheMetadataService", LogLevel.Error);