Add temporary log for stufftech debug

This commit is contained in:
nicolas.dorier 2018-03-29 12:21:20 +09:00
parent 799ce74f65
commit fb57d8c3ce

View file

@ -512,9 +512,9 @@ namespace BTCPayServer.Services.Invoices
builder.AppendLine(data.Id);
builder.AppendLine(data.InvoiceDataId);
builder.AppendLine(context.Database.ProviderName);
builder.AppendLine(context.Payments.AnyAsync(p => p.Id == data.Id).ToString());
builder.AppendLine((await context.Payments.AnyAsync(p => p.Id == data.Id)).ToString());
await context.SaveChangesAsync().ConfigureAwait(false);
builder.AppendLine(context.Payments.AnyAsync(p => p.Id == data.Id).ToString());
builder.AppendLine((await context.Payments.AnyAsync(p => p.Id == data.Id)).ToString());
Logs.PayServer.LogInformation(builder.ToString());
}
catch(DbUpdateException) { return null; } // Already exists