mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-29 05:49:55 +00:00
Use log level error to report telemetry (#8097)
This fix the issue when running the node with -lwarn, the telemetry cannot be initialized properly.
This commit is contained in:
1 parent
3fbe22f552
commit
772224c132
1 file changed
+6
-1
@@ -86,7 +86,7 @@ impl TelemetrySpan {
|
||||
|
||||
/// Constructs a new [`TelemetrySpan`].
|
||||
pub fn new() -> Self {
|
||||
Self(tracing::info_span!(TELEMETRY_LOG_SPAN))
|
||||
Self(tracing::error_span!(TELEMETRY_LOG_SPAN))
|
||||
}
|
||||
|
||||
/// Return a clone of the underlying `tracing::Span` instance.
|
||||
@@ -230,6 +230,11 @@ impl TelemetryWorker {
|
||||
};
|
||||
|
||||
for (addr, verbosity) in endpoints {
|
||||
log::trace!(
|
||||
target: "telemetry",
|
||||
"Initializing telemetry for: {:?}",
|
||||
addr,
|
||||
);
|
||||
node_map
|
||||
.entry(id.clone())
|
||||
.or_default()
|
||||
|
||||
Reference in new issue
Block a user