Closed ShutterQuick closed 3 years ago
Thanks for the heads-up - this code was originally derived from Serilog.Sinks.PeriodicBatching, which has subsequently been updated to fix a few issues like this. We'll re-import the Serilog version of the code, which no longer includes the problematic section đź‘Ť
@ShutterQuick there should be a 6.0.0-dev-*
version published to NuGet with this fix in just a moment. It would be great to hear how it goes for you. Thanks again!
Thank you for the super quick turnaround! Looks like it's working properly now for my use case, thanks a lot!
Hi,
This use of
async void
prevents the task to be properly tracked by the ASP.NET WebForms. Relevant info: https://stackoverflow.com/a/17660475https://github.com/datalust/seq-extensions-logging/blob/93dd71fc5fd26642c32a41d01cee2b5603de97f2/src/Seq.Extensions.Logging/Serilog/Sinks/PeriodicBatching/PortableTimer.cs#L127
It's not immediately obvious to me what the purpose of doing it like this is. Could you have a look at it, and consider removing
AsObserved()
and instead just do.ConfigureAwait(false)
directly?https://github.com/datalust/seq-extensions-logging/blob/93dd71fc5fd26642c32a41d01cee2b5603de97f2/src/Seq.Extensions.Logging/Serilog/Sinks/PeriodicBatching/PortableTimer.cs#L54
I've tested doing that, and it makes my problem go away.