diff --git a/net-guardia/src/utils/logging.rs b/net-guardia/src/utils/logging.rs index c755fb4..2db32c8 100644 --- a/net-guardia/src/utils/logging.rs +++ b/net-guardia/src/utils/logging.rs @@ -39,10 +39,14 @@ impl Logging { Level::INFO }; + let env_filter = EnvFilter::from_default_env() + .add_directive(level.into()) + .add_directive("maxminddb=warn".parse().expect("valid directive")); + tracing_subscriber::registry() .with(stdout_layer) .with(file_layer) - .with(EnvFilter::from_default_env().add_directive(level.into())) + .with(env_filter) .init(); Ok(())