Skip to content

Conversation

@ddoktorski
Copy link
Collaborator

No description provided.

@ddoktorski
Copy link
Collaborator Author

ddoktorski commented Nov 28, 2025

// 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),
Copy link
Collaborator

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> {
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants