Skip to content

Commit 473bb3d

Browse files
authored
Log not implemented messages as debug in prometheus metrics. (#477)
1 parent c7d6273 commit 473bb3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/prometheus.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use hyper::service::{make_service_fn, service_fn};
22
use hyper::{Body, Method, Request, Response, Server, StatusCode};
3-
use log::{error, info, warn};
3+
use log::{error, info, debug};
44
use phf::phf_map;
55
use std::collections::HashMap;
66
use std::fmt;
@@ -275,7 +275,7 @@ fn push_address_stats(lines: &mut Vec<String>) {
275275
{
276276
lines.push(prometheus_metric.to_string());
277277
} else {
278-
warn!("Metric {} not implemented for {}", key, address.name());
278+
debug!("Metric {} not implemented for {}", key, address.name());
279279
}
280280
}
281281
}
@@ -293,7 +293,7 @@ fn push_pool_stats(lines: &mut Vec<String>) {
293293
{
294294
lines.push(prometheus_metric.to_string());
295295
} else {
296-
warn!("Metric {} not implemented for ({})", name, *pool_id);
296+
debug!("Metric {} not implemented for ({})", name, *pool_id);
297297
}
298298
}
299299
}
@@ -318,7 +318,7 @@ fn push_database_stats(lines: &mut Vec<String>) {
318318
{
319319
lines.push(prometheus_metric.to_string());
320320
} else {
321-
warn!("Metric {} not implemented for {}", key, address.name());
321+
debug!("Metric {} not implemented for {}", key, address.name());
322322
}
323323
}
324324
}

0 commit comments

Comments
 (0)