-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lazy init default logger (#111)
* fix: lazy init default logger The default logger will try to query background et al on startup, which might conflict with other libs trying to query it too. It's easily reproducible with some of our tools that use the log package, e.g., VHS: ```sh faketty vhs --help ``` It slows down the program quite a bit, and print some ansi escape sequences as well. This patch changes it so it only inits the default logger when/if the default logger is used. Per my testing, it seems to fix the original issue. * fix: var name
- Loading branch information
Showing
2 changed files
with
42 additions
and
34 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