Drain ConsoleLogProcessor on Dispose#85162
Conversation
|
Tagging subscribers to this area: @dotnet/area-extensions-logging Issue DetailsContext
TestingAdded tailored test quickly issuing multiple messages - some of those would get lost with previos behavior
|
|
Thanks @JanKrivanek for fixing this. |
|
While this was fixed in |
|
Currently there is no plan to port this fix to .NET 7.0. We need to exercise the fix in |
Fixes #79812 and #71242
Context
ConsoleLoggerProcessorwas aburptly skipping all queued messages on Dispose. This is a regression introduced by #70186Current change allows
ConsoleLogProcessorto drain its queue onDispose(similarly as it was pre-net7)Testing
Added tailored test quickly issuing multiple messages - some of those would get lost with previuos behavior
This as well fixed previously disabled flaky test