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

Don't write a spurious SelfLog event when disposing an unused sink in durable mode #231

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

nblumhardt
Copy link
Member

Fixes #198

The construction of a bookmark file normally creates one if it doesn't already exist. This PR follows the behavior of the "write" path by also attempting to create the directory if necessary (Directory.CreateDirectory() is idempotent).

Although it can't be exercised currently, this would also prevent a potential startup-time race condition if the shipper were to get started before, or faster than, the file sink.

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.

Buffered events upload on logger dispose fails if there is no logs yet
1 participant