aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-05-23 17:32:47 -0400
committerJesse Luehrs <doy@tozt.net>2020-05-23 17:32:47 -0400
commit8028b909b90e0daea7bf538ee7895349974fecd8 (patch)
tree68f404a8569f437cd8735f4d1c8701aeac4e1c8a /src
parent13459bcaa2346fffc0f10d220ff3c6906f9e7924 (diff)
downloadrbw-8028b909b90e0daea7bf538ee7895349974fecd8.tar.gz
rbw-8028b909b90e0daea7bf538ee7895349974fecd8.zip
make log lines emitted by the cli have a simpler format
Diffstat (limited to 'src')
-rw-r--r--src/bin/rbw/main.rs4
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 {