Skip to content

Commit

Permalink
Replace eprintln! with log::error!
Browse files Browse the repository at this point in the history
  • Loading branch information
cybershang committed Sep 18, 2024
1 parent 0650b99 commit ed1043c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub async fn metrics_handler(metrics_manager: web::Data<Arc<RwLock<MetricsManage

let mut buffer = String::new();
if let Err(e) = encode(&mut buffer, &registry) {
eprintln!("Failed to encode metrics: {}", e);
log::error!("Failed to encode metrics: {}", e);
return HttpResponse::InternalServerError().finish();
}

Expand Down

0 comments on commit ed1043c

Please sign in to comment.