mirror of
https://github.com/kharonsec/garage.git
synced 2026-04-25 20:44:55 +02: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)
|
||||
.map(|k| format!("(key {k}) "))
|
||||
.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);
|
||||
|
||||
let tracer = opentelemetry::global::tracer("garage");
|
||||
|
||||
@@ -273,7 +273,7 @@ impl NetApp {
|
||||
);
|
||||
}
|
||||
|
||||
info!(
|
||||
debug!(
|
||||
"Incoming connection from {}, negotiating handshake...",
|
||||
peer_addr
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user