diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-05-23 17:32:47 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-05-23 17:32:47 -0400 |
commit | 8028b909b90e0daea7bf538ee7895349974fecd8 (patch) | |
tree | 68f404a8569f437cd8735f4d1c8701aeac4e1c8a /src/bin | |
parent | 13459bcaa2346fffc0f10d220ff3c6906f9e7924 (diff) | |
download | rbw-8028b909b90e0daea7bf538ee7895349974fecd8.tar.gz rbw-8028b909b90e0daea7bf538ee7895349974fecd8.zip |
make log lines emitted by the cli have a simpler format
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/rbw/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs index 6c3409d..561d20b 100644 --- a/src/bin/rbw/main.rs +++ b/src/bin/rbw/main.rs @@ -1,6 +1,7 @@ #![allow(clippy::large_enum_variant)] use anyhow::Context as _; +use std::io::Write as _; mod actions; mod commands; @@ -203,6 +204,9 @@ fn main(opt: Opt) { env_logger::from_env( env_logger::Env::default().default_filter_or("info"), ) + .format(|buf, record| { + writeln!(buf, "{}: {}", record.level(), record.args()) + }) .init(); let res = match opt { |