Replies: 3 comments 5 replies
This comment was marked as spam.
This comment was marked as spam.
-
If you provide a PR that modifies the readme and adds a note about it, then I will Merge it :) |
Beta Was this translation helpful? Give feedback.
-
@AnderssonPeter Is there anything that could be done outside of a warning in the README to prevent user of from running into this issue? I do like the idea of updating the README to include a warning on not using Serilogs.Sinks.Async with Hangfire sink. I'm looking to understand the root problem and have a healthy discussion on this. I think more consumers that use Serilogs.Sinks.Async (https://github.com/serilog/serilog-sinks-async) or potentially other Serilog sinks that do some async batch logging could run into this. I understand that the user expects logs to appear immediately on the Hangfire Console, so the use of an async wrapper would go against the expected sync expectation. Again, thanks for your work on this project! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently we have run into problems with using WriteTo Hangfire with Serilog Async sink combination (on postgresql).
There was multiple NpgsqlOperationInProgressException exceptions rised.
It took a whole day to match, that Async was reusing a connection to postgres and run on it same time when DbLock was removing.
TLDR it would be a good idea to add a comment to NOT use Async sink when using WriteTo: Hangfire :)
Beta Was this translation helpful? Give feedback.
All reactions