Skip to content
Snippets Groups Projects
Commit 68d547e7 authored by Éloïs's avatar Éloïs
Browse files

[tests] common: add src file path on every logs

parent a27624b6
No related branches found
No related tags found
2 merge requests!232Elois/local validation,!221WIP: Resolve "Fail to revert block with transactions"
......@@ -66,17 +66,19 @@ fn init_logger_stdout_(off_targets: Vec<&'static str>) {
.info(Color::Green)
.debug(Color::Cyan);
out.finish(format_args!(
"{}[{}][{}] {}",
"{}[{}:{}][{}] {}",
chrono::Local::now().format("[%Y-%m-%d][%H:%M:%S]"),
record.target(),
record.file_static().unwrap_or("unknown source file"),
record.line().unwrap_or(0),
colors_config.color(record.level()),
message
))
} else {
out.finish(format_args!(
"{}[{}][{}] {}",
"{}[{}:{}][{}] {}",
chrono::Local::now().format("[%Y-%m-%d][%H:%M:%S]"),
record.target(),
record.file_static().unwrap_or("unknown source file"),
record.line().unwrap_or(0),
record.level(),
message
))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment