mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-28 07:57:02 +00:00
Suppress log noise from /metrics and /health endpoints [#1292]. Change log level for 'netapp: incomming connection ...' message [#1310] (#1361)
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/1361 Co-authored-by: Ira Iva <xatikopro@gmail.com> Co-committed-by: Ira Iva <xatikopro@gmail.com>
This commit is contained in:
@@ -162,7 +162,13 @@ impl<A: ApiHandler> ApiServer<A> {
|
|||||||
.key_id_from_request(&req)
|
.key_id_from_request(&req)
|
||||||
.map(|k| format!("(key {k}) "))
|
.map(|k| format!("(key {k}) "))
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
info!("{source} {key}{} {uri}", req.method());
|
|
||||||
|
if A::API_NAME == "admin" && (uri.path() == "/health" || uri.path() == "/metrics") {
|
||||||
|
debug!("{source} {key}{} {uri}", req.method());
|
||||||
|
} else {
|
||||||
|
info!("{source} {key}{} {uri}", req.method());
|
||||||
|
}
|
||||||
|
|
||||||
debug!("{:?}", req);
|
debug!("{:?}", req);
|
||||||
|
|
||||||
let tracer = opentelemetry::global::tracer("garage");
|
let tracer = opentelemetry::global::tracer("garage");
|
||||||
|
|||||||
+1
-1
@@ -273,7 +273,7 @@ impl NetApp {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
info!(
|
debug!(
|
||||||
"Incoming connection from {}, negotiating handshake...",
|
"Incoming connection from {}, negotiating handshake...",
|
||||||
peer_addr
|
peer_addr
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user