-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing: Simplify init logic using optional layers
The layer creation itself looks a bit more complex, but this is due to how altering the presence of timestamps changes the type signature of the formatter. The main improvements are that we now only initialise the registry in a single location, and the log filter reload handle has a single type signature (whereas previously its type signature depended on the configuration). Requires a minimum of tracing-subscriber 0.2.12, which added this feature. Part of zcash/zcash#4668.
- Loading branch information
Showing
2 changed files
with
43 additions
and
51 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