From 2c6dd7850216d7d8085f8d567fd4e0840a7fd85c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 11 Aug 2025 11:31:12 +0000 Subject: [PATCH] Reduce log level on router::args returned error. Signed-off-by: Jason Volk --- src/api/router/args.rs | 8 +++++++- src/api/router/auth.rs | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/api/router/args.rs b/src/api/router/args.rs index 8cad31a1..d4eb03ea 100644 --- a/src/api/router/args.rs +++ b/src/api/router/args.rs @@ -82,7 +82,13 @@ where { type Rejection = Error; - #[tracing::instrument(name = "ar", level = "debug", skip(services), ret, err)] + #[tracing::instrument( + name = "ar", + level = "debug", + skip(services), + err(level = "warn") + ret, + )] async fn from_request( request: hyper::Request, services: &State, diff --git a/src/api/router/auth.rs b/src/api/router/auth.rs index d804b761..6ea6c2a8 100644 --- a/src/api/router/auth.rs +++ b/src/api/router/auth.rs @@ -60,8 +60,8 @@ pub(super) struct Auth { #[tracing::instrument( level = "trace", skip(services, request, json_body), - ret, - err + err(level = "warn"), + ret )] pub(super) async fn auth( services: &Services,