mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
Only log warnings in tests
This commit is contained in:
parent
26bc2fb857
commit
63c49b8dfa
3 changed files with 6 additions and 5 deletions
|
|
@ -110,10 +110,10 @@ pub fn minimize(options: Options) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn init_recommended_tracing_subscriber() {
|
||||
pub fn init_recommended_tracing_subscriber(default_level: Level) {
|
||||
let registry = Registry::default().with(
|
||||
EnvFilter::builder()
|
||||
.with_default_directive(Level::INFO.into())
|
||||
.with_default_directive(default_level.into())
|
||||
.from_env()
|
||||
.unwrap(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue