Skip to content
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

Switch from log to tracing crate for per-crate log levels #33

Open
detjensrobert opened this issue Jan 12, 2025 · 0 comments
Open

Switch from log to tracing crate for per-crate log levels #33

detjensrobert opened this issue Jan 12, 2025 · 0 comments

Comments

@detjensrobert
Copy link
Contributor

Right now our verbosity flag sets a global log level. Some of our dependencies (bollard, kube) are very verbose at debug and trace levels, and setting our log level to debug for our debug logs should not enable their debug logs.

The log crate does not support this, and only has a global log level. The newer tracing crate (https://lib.rs/crates/tracing) which seems to be the new preferred logging crate can do separate global- and crate-specific log levels. It should be a drop-in replacement, and we can enable the other stuff it does after we switch.

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

No branches or pull requests

1 participant