Skip to content

Commit

Permalink
Don't style debug and trace output
Browse files Browse the repository at this point in the history
  • Loading branch information
andrews05 authored and shssoichiro committed Jul 31, 2023
1 parent 708a019 commit 02bd47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ fn parse_opts_into_struct(
.filter_module(module_path!(), log_level)
.format(|buf, record| {
let style = match record.level() {
Level::Info => buf.style(),
_ => buf.default_level_style(record.level()),
Level::Error | Level::Warn => buf.default_level_style(record.level()),
_ => buf.style(), // Leave info, debug and trace unstyled
};
writeln!(buf, "{}", style.value(record.args()))
})
Expand Down

0 comments on commit 02bd47b

Please sign in to comment.