Skip to content

Commit 59ee035

Browse files
committed
fix: set rocket_cors log level to Warn (fixes ActivityWatch/activitywatch#975)
1 parent 52e5214 commit 59ee035

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aw-server/src/logging.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ pub fn setup_logger(module: &str, testing: bool, verbose: bool) -> Result<(), fe
4949
if !is_debug {
5050
dispatch = dispatch
5151
.level_for("rocket", log::LevelFilter::Warn)
52+
// rocket_cors has a lot of unhelpful info messages that spam the log on every request
53+
// https://github.com/ActivityWatch/activitywatch/issues/975
54+
.level_for("rocket_cors", log::LevelFilter::Warn)
5255
.level_for("_", log::LevelFilter::Warn) // Rocket requests
5356
.level_for("launch_", log::LevelFilter::Warn); // Rocket config info
5457
}

0 commit comments

Comments
 (0)