Closed lbras closed 7 years ago
Are you calling LogManager.Shutdown()
on Application_End? If the logger you are using does not flush within the timeout period, you may still see the above message.
Hi,
I had the same issue. I won't explain in details but I think the last change has introduced the issue. An immediate shutdown was added but there is a delay before SubscriberLoop ends. I have created a pull request and update the code to wait 100ms before entering in the "wait" loop. If someone can review? Hope it will help. @rcollette @cjbhaines
Closing since this was resolved by the linked PR.
Hi,
I'm getting this error in an ASP.NET application every time the application pool is recycled:
I'm using the ParallelForwardingAppender together with a lossy BufferingForwardingAppender. If I understand correctly, the BufferingForwardingAppender is flushed on shutdown, forwarding the buffered log requests to the ParallelForwardingAppender, but since the task is canceled the OperationCanceledException is thrown.
Is there a better way to handle this situation or should I just ignore the error?