Skip to content

Commit

Permalink
fix: set rocket_cors log level to Warn (fixes ActivityWatch/activityw…
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 15, 2023
1 parent 52e5214 commit 59ee035
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aw-server/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ pub fn setup_logger(module: &str, testing: bool, verbose: bool) -> Result<(), fe
if !is_debug {
dispatch = dispatch
.level_for("rocket", log::LevelFilter::Warn)
// rocket_cors has a lot of unhelpful info messages that spam the log on every request
// https://github.com/ActivityWatch/activitywatch/issues/975
.level_for("rocket_cors", log::LevelFilter::Warn)
.level_for("_", log::LevelFilter::Warn) // Rocket requests
.level_for("launch_", log::LevelFilter::Warn); // Rocket config info
}
Expand Down

0 comments on commit 59ee035

Please sign in to comment.