diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index 25a237386..d6c4fc45b 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -25,6 +25,7 @@ using Microsoft.Extensions.Caching.Memory; using BTCPayServer.Eclair; using System.Collections.Generic; using BTCPayServer.Models.StoreViewModels; +using System.Threading.Tasks; namespace BTCPayServer.Tests { diff --git a/BTCPayServer/HostedServices/InvoiceWatcher.cs b/BTCPayServer/HostedServices/InvoiceWatcher.cs index 0c4f4259f..40a1612b9 100644 --- a/BTCPayServer/HostedServices/InvoiceWatcher.cs +++ b/BTCPayServer/HostedServices/InvoiceWatcher.cs @@ -412,6 +412,7 @@ namespace BTCPayServer.HostedServices { if (invoiceId == null) throw new ArgumentNullException(nameof(invoiceId)); + Logs.PayServer.LogInformation($"Watching {invoiceId}"); _WatchRequests.Add(invoiceId); var invoice = await _InvoiceRepository.GetInvoice(null, invoiceId); try @@ -485,6 +486,7 @@ namespace BTCPayServer.HostedServices { try { + Logs.PayServer.LogInformation($"Updating {i}"); await UpdateInvoice(i, cancellation); } catch (Exception ex) when (!cancellation.IsCancellationRequested) @@ -492,7 +494,9 @@ namespace BTCPayServer.HostedServices Logs.PayServer.LogCritical(ex, $"Error in the InvoiceWatcher loop (Invoice {i})"); await Task.Delay(2000, cancellation); } - finally { executing.TryRemove(i, out Task useless); } + finally { + Logs.PayServer.LogInformation($"Updated {i}"); + executing.TryRemove(i, out Task useless); } }); } } diff --git a/BTCPayServer/Program.cs b/BTCPayServer/Program.cs index 808458d57..a8b73c697 100644 --- a/BTCPayServer/Program.cs +++ b/BTCPayServer/Program.cs @@ -45,6 +45,7 @@ namespace BTCPayServer .ConfigureLogging(l => { l.AddFilter("Microsoft", LogLevel.Error); + l.AddFilter("Microsoft.AspNetCore.Antiforgery.Internal", LogLevel.Critical); l.AddProvider(new CustomConsoleLogProvider(processor)); }) .UseStartup()