Adding logging to try and catch situations where invoice is not expired

This commit is contained in:
rockstardev
2020-02-20 16:54:18 -06:00
committed by rockstardev
parent 34702d2633
commit 1be6408246

View File

@@ -180,7 +180,11 @@ namespace BTCPayServer.HostedServices
{
if (invoiceId == null)
throw new ArgumentNullException(nameof(invoiceId));
_WatchRequests.Writer.TryWrite(invoiceId);
if (!_WatchRequests.Writer.TryWrite(invoiceId))
{
Logs.PayServer.LogWarning($"Failed to write invoice {invoiceId} into WatchRequests channel");
}
}
private async Task Wait(string invoiceId)