From 8028b909b90e0daea7bf538ee7895349974fecd8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 23 May 2020 17:32:47 -0400 Subject: make log lines emitted by the cli have a simpler format --- src/bin/rbw/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3-54-g00ecf