Use numbers instead of indentations
Noone can differentiate between 8 and 9 spaces if they aren't aligned
This commit is contained in:
parent
8d546e8b9a
commit
072c02f9a3
1 changed files with 2 additions and 3 deletions
|
|
@ -193,14 +193,13 @@ fn resource_limits_from_attributes(state: &CompileState) -> miri::ResourceLimits
|
|||
fn init_logger() {
|
||||
let format = |record: &log::LogRecord| {
|
||||
if record.level() == log::LogLevel::Trace {
|
||||
// prepend spaces to indent the final string
|
||||
// prepend frame number
|
||||
let indentation = log_settings::settings().indentation;
|
||||
format!(
|
||||
"{lvl}:{module}:{indent:<indentation$} {text}",
|
||||
"{indentation}:{lvl}:{module}: {text}",
|
||||
lvl = record.level(),
|
||||
module = record.location().module_path(),
|
||||
indentation = indentation,
|
||||
indent = "",
|
||||
text = record.args(),
|
||||
)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue