Skip to content

Commit

Permalink
common: set same level for file logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Slixe committed Oct 26, 2023
1 parent def0bed commit 9ed1268
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xelis_common/src/prompt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ impl<T> Prompt<T> {
}

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 { " " };
Expand Down

0 comments on commit 9ed1268

Please sign in to comment.