Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure we handle exceptions from the wrapped sink #45

Merged
merged 3 commits into from
Jun 7, 2019

Conversation

nblumhardt
Copy link
Member

Originally, _pipeline was a logger, and therefore exceptions from the target sink were suppressed. After switching to invoke the wrapped sink directly, these escape and terminate the worker.

I did my best to modernize the package where I could, on a drive-by. This means adding netstandard2.0 and net461 targets, as well as some dependency updates.

Should be pretty safe to get this out there :-)

Fixes #44

@@ -15,24 +15,24 @@
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageId>Serilog.Sinks.Async</PackageId>
<PackageTags>serilog;async</PackageTags>
<PackageIconUrl>http://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl>
<PackageIconUrl>https://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl>
<PackageProjectUrl>https://serilog.net</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest <PackageLicense>Apache-2.0</PackageLicense>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call 👍

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BackgroundWorkerSink crashes if target sink throws an exception
2 participants