Skip to content

Commit

Permalink
Update substrate/utils/prometheus/src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr authored Dec 22, 2024
1 parent cfb7bdc commit 7d0dffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/utils/prometheus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async fn request_metrics(
/// to serve metrics.
pub async fn init_prometheus(prometheus_addr: SocketAddr, registry: Registry) -> Result<(), Error> {
let listener = tokio::net::TcpListener::bind(&prometheus_addr).await.map_err(|e| {
log::error!(target: "prometheus", "Error binding to '{:?}': {:?}", prometheus_addr, e);
log::error!(target: "prometheus", "Error binding to '{prometheus_addr:?}': {e:?}");
Error::PortInUse(prometheus_addr)
})?;

Expand Down

0 comments on commit 7d0dffa

Please sign in to comment.