-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default log directives only when RUST_LOG is not set
Summary: Normally, [log directives are set using the RUST_LOG environment variable](https://docs.rs/env_logger/latest/env_logger/#enabling-logging). We have some default log directives we want to set in supertd, and we currently set them unconditionally, which is surprising to someone expecting directives they assign to the RUST_LOG envvar to work! Instead, only set the default log directives when RUST_LOG is not set. This diff also moves the place where we set the default log directives into init_tracing, so that we have uniform logging behavior across td binaries. Reviewed By: Acesine Differential Revision: D53673935 fbshipit-source-id: 5e5564a8c9c42488312f6220302c0310b631a560
- Loading branch information
1 parent
9334c4b
commit 4d5dfbf
Showing
4 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters