From 9ed1268629a0a8c4b7f04af34553cee0dfe1f4ee Mon Sep 17 00:00:00 2001 From: Slixe Date: Thu, 26 Oct 2023 23:02:19 +0200 Subject: [PATCH] common: set same level for file logging --- xelis_common/src/prompt/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xelis_common/src/prompt/mod.rs b/xelis_common/src/prompt/mod.rs index 1da64f6d..e8f30eb9 100644 --- a/xelis_common/src/prompt/mod.rs +++ b/xelis_common/src/prompt/mod.rs @@ -668,6 +668,7 @@ impl Prompt { } let file_log = fern::Dispatch::new() + .level(level.into()) .format(move |out, message, record| { let pad = " ".repeat((30i16 - record.target().len() as i16).max(0) as usize); let level_pad = if record.level() == Level::Error || record.level() == Level::Debug { "" } else { " " };