diff --git a/BTCPayServer/EventAggregator.cs b/BTCPayServer/EventAggregator.cs index 97b90ac80..c78238078 100644 --- a/BTCPayServer/EventAggregator.cs +++ b/BTCPayServer/EventAggregator.cs @@ -87,7 +87,10 @@ namespace BTCPayServer actionList = actions.Values.ToList(); } } - + if(evt is Events.InvoiceEvent inv && inv.EventCode == 1002) + { + Logs.Events.LogInformation(new System.Diagnostics.StackTrace().ToString()); + } var log = evt.ToString(); if(!String.IsNullOrEmpty(log)) Logs.Events.LogInformation(log); diff --git a/BTCPayServer/Services/Invoices/InvoiceRepository.cs b/BTCPayServer/Services/Invoices/InvoiceRepository.cs index ea2231f2b..af1de9798 100644 --- a/BTCPayServer/Services/Invoices/InvoiceRepository.cs +++ b/BTCPayServer/Services/Invoices/InvoiceRepository.cs @@ -509,6 +509,7 @@ namespace BTCPayServer.Services.Invoices try { await context.SaveChangesAsync().ConfigureAwait(false); + Logs.PayServer.LogInformation(new System.Diagnostics.StackTrace().ToString()); } catch(DbUpdateException) { return null; } // Already exists AddToTextSearch(invoiceId, paymentData.GetSearchTerms());