Skip to content

Commit

Permalink
Format debug messages such as ["DEBUG", [1, 2, 3]].
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Sep 24, 2024
1 parent 711033e commit b71ea96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaq/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ impl ColorWhen {
fn main() -> ExitCode {
use env_logger::Env;
env_logger::Builder::from_env(Env::default().filter_or("LOG", "debug"))
// omit name of module that emitted log message
.format_target(false)
// format debug messages such as `["DEBUG", [1, 2, 3]]`
.format(|buf, record| writeln!(buf, "[\"{}\", {}]", record.level(), record.args()))
.init();

let cli = Cli::parse();
Expand Down

0 comments on commit b71ea96

Please sign in to comment.