Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Enable early logging with environment variables #123

Merged
merged 8 commits into from
Feb 17, 2018
Merged

Conversation

smashwilson
Copy link
Contributor

The existing logging is not helpful enough to be able to diagnose issues that happen during initialization. For configure() to be able to communicate with the worker and poller threads to set up logging in the first place, the target thread needs to be running and processing commands - so if it never has a chance to get that far, it's difficult to figure out what's going on.

Setting WATCHER_LOG_MAIN, WATCHER_LOG_WORKER, or WATCHER_LOG_POLLING to either "stdout", "stderr", or the path to a file will configure the logger for the appropriate thread at the earliest possible moment.

@smashwilson smashwilson merged commit 5289f4a into master Feb 17, 2018
@smashwilson smashwilson deleted the early-logging branch February 17, 2018 02:26
This was referenced Feb 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant