mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 03:55:40 +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
|
// Custom code to display node name
|
||||||
if let Some(span) = ctx.lookup_current() {
|
if let Some(span) = ctx.lookup_current() {
|
||||||
let parents = span.parents();
|
let parents = span.parents();
|
||||||
@@ -137,9 +141,6 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.display_target {
|
|
||||||
write!(writer, "{}:", meta.target())?;
|
|
||||||
}
|
|
||||||
ctx.format_fields(writer, event)?;
|
ctx.format_fields(writer, event)?;
|
||||||
writeln!(writer)?;
|
writeln!(writer)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user