Skip to content

Commit

Permalink
chore: reduce log verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Oct 15, 2024
1 parent 8e78468 commit 6c75f77
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions server/src/metrics/metrics_pusher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,12 @@ async fn remote_write_prom(registry: prometheus::Registry, url: String, client:

match client.execute(http_request).await {
Ok(r) => {
if r.status().is_success() {
tracing::info!(
"Prometheus push successful with status: {} and text {}",
r.status(),
r.text().await.unwrap()
);
} else {
tracing::error!("Prometheus push failed with status: {}", r.status());
if !r.status().is_success() {
tracing::warn!("Prometheus push failed with status: {}", r.status());
}
}
Err(e) => {
tracing::error!("Prometheus push failed with error: {}", e);
tracing::warn!("Prometheus push failed with error: {}", e);
}
}
}

0 comments on commit 6c75f77

Please sign in to comment.