Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 12562bb

Browse files
authored
Use log level error to report telemetry (#8097)
This fix the issue when running the node with -lwarn, the telemetry cannot be initialized properly.
1 parent ba290e0 commit 12562bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/telemetry/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl TelemetrySpan {
8686

8787
/// Constructs a new [`TelemetrySpan`].
8888
pub fn new() -> Self {
89-
Self(tracing::info_span!(TELEMETRY_LOG_SPAN))
89+
Self(tracing::error_span!(TELEMETRY_LOG_SPAN))
9090
}
9191

9292
/// Return a clone of the underlying `tracing::Span` instance.
@@ -230,6 +230,11 @@ impl TelemetryWorker {
230230
};
231231

232232
for (addr, verbosity) in endpoints {
233+
log::trace!(
234+
target: "telemetry",
235+
"Initializing telemetry for: {:?}",
236+
addr,
237+
);
233238
node_map
234239
.entry(id.clone())
235240
.or_default()

0 commit comments

Comments
 (0)