-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logging: enable configuration via ENV
This restores the functionality we had previously to set JULIA_DEBUG_LOADING=1 to activate logging; now the equivalent would be to set JULIA_DEBUG=loading. But with the new infrastructure, this is also generalized to allow filtering on any key (module, root-module, or filename), or "all". This sits between the global disable (which still provides a fast-path to skip everything), and the default min-level for a logger (which will be overridden by the environment variable). This also tries to move a bit more work into non-inlined helper functions, rather than inlining that code directly, to slightly reduce the size of the emitted code. As a possible future improvement, we could allow specifying specific levels (such as `loading=MaxLevel` or `all=Debug`), to provide even more fine-grained control. fix #25549
- Loading branch information
Showing
2 changed files
with
84 additions
and
11 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