mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 09:27:59 +00:00
Log target before prefix for more consistent logging (#7897)
* Log target before prefix for more consistent logging As requested, this moves the target before the prefix to have consistent logging between logs with and without a prefix. * Add a space
This commit is contained in:
@@ -125,6 +125,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
if self.display_target {
|
||||
write!(writer, "{}: ", meta.target())?;
|
||||
}
|
||||
|
||||
// Custom code to display node name
|
||||
if let Some(span) = ctx.lookup_current() {
|
||||
let parents = span.parents();
|
||||
@@ -137,9 +141,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
if self.display_target {
|
||||
write!(writer, "{}:", meta.target())?;
|
||||
}
|
||||
ctx.format_fields(writer, event)?;
|
||||
writeln!(writer)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user