From 026a0dd1faf28c4668f58bd1790c168a0134559f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 1 Jul 2020 09:25:20 +0800 Subject: [PATCH] neater progress log messages: don't show the module it originates from --- src/plumbing/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plumbing/mod.rs b/src/plumbing/mod.rs index fa590fd6678..3706e159d5f 100644 --- a/src/plumbing/mod.rs +++ b/src/plumbing/mod.rs @@ -9,7 +9,9 @@ pub mod lean; #[cfg(feature = "env_logger")] fn init_env_logger(verbose: bool) { if verbose { - env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")) + .format_module_path(false) + .init(); } else { env_logger::init(); }