Skip to content

Commit

Permalink
removed pluralization
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcottner committed Feb 3, 2025
1 parent a078d70 commit 30d7572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn get_logger<S: Into<String>>(prefix: S, human_logs: bool, log_level: Strin
let drain = slog_term::CompactFormat::new(decorator).build().fuse();
slog_async::Async::new(drain).build().fuse()
} else {
let log_level_options = slog::Level::from_str(&log_level);
let log_level_option = slog::Level::from_str(&log_level);
let drain = MozLogJson::new(io::stdout())
.logger_name(format!(
"{}-{}",
Expand All @@ -27,7 +27,7 @@ pub fn get_logger<S: Into<String>>(prefix: S, human_logs: bool, log_level: Strin
))
.msg_type(prefix)
.build()
.filter_level(log_level_options.unwrap_or(slog::Level::Warning))
.filter_level(log_level_option.unwrap_or(slog::Level::Warning))
.fuse();
slog_async::Async::new(drain).build().fuse()
};
Expand Down

0 comments on commit 30d7572

Please sign in to comment.