Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use log level error to report telemetry
This fix the issue when running the node with -lwarn, the telemetry cannot be initialized properly.
  • Loading branch information
cecton committed Feb 10, 2021
commit 2b6edb3d37fceafa5eadda6fced89cae49f0f3df
7 changes: 6 additions & 1 deletion client/telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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()
Expand Down