Skip to content

Commit

Permalink
fix: only filter certain loggers when not in debug mode (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootingKing-AM committed Nov 3, 2022
1 parent 5bd70f9 commit fbdc6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aw-server/src/logging.rs
Expand Up @@ -48,7 +48,7 @@ pub fn setup_logger(testing: bool) -> Result<(), fern::InitError> {
// Set some Rocket messages to debug level

let is_debug = matches!(log_level, log::LevelFilter::Trace | log::LevelFilter::Debug);
if is_debug {
if !is_debug {
dispatch = dispatch
.level_for("rocket", log::LevelFilter::Warn)
.level_for("_", log::LevelFilter::Warn) // Rocket requests
Expand Down

0 comments on commit fbdc6b5

Please sign in to comment.