mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-07 00:17:22 +00:00
Rework telemetry to replace the use of tracing with an object we pass around (#8143)
polkadot companion: paritytech/polkadot#2535
This commit is contained in:
@@ -62,10 +62,6 @@ where
|
||||
S: Subscriber + for<'a> LookupSpan<'a>,
|
||||
N: for<'a> FormatFields<'a> + 'static,
|
||||
{
|
||||
if event.metadata().target() == sc_telemetry::TELEMETRY_LOG_SPAN {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let writer = &mut MaybeColorWriter::new(self.enable_color, writer);
|
||||
let normalized_meta = event.normalized_metadata();
|
||||
let meta = normalized_meta.as_ref().unwrap_or_else(|| event.metadata());
|
||||
|
||||
Reference in New Issue
Block a user