-
Notifications
You must be signed in to change notification settings - Fork 0
Add logging #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: init
Are you sure you want to change the base?
Add logging #33
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
| // Filter out less important logs because they're too verbose, | ||
| // and with them the profile file quickly grows to several GBs of data. | ||
| let profile_layer = profile_layer.with_filter( | ||
| Targets::new().with_default(LevelFilter::TRACE).with_target("salsa", LevelFilter::WARN), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use salsa. We should put filter here so that we don't collect logs from foundry (and scarb in the future).
| Ok(()) | ||
| } | ||
|
|
||
| pub fn init_logging() -> Option<impl Drop> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be crate specific, not struct specific. Put it as a standalone function
No description provided.