From c1ec1111ae668677e6e7adb6477618f4cd3c55d7 Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Thu, 30 May 2024 16:43:49 -0700 Subject: [PATCH] improve route-not-found tracing event --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ea9f535c..7cb705e3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -504,8 +504,8 @@ async fn federation_disabled(_: Uri) -> impl IntoResponse { Error::bad_config("Federation is disabled.") } -async fn not_found(uri: Uri) -> impl IntoResponse { - warn!("Not found: {uri}"); +async fn not_found(method: Method, uri: Uri) -> impl IntoResponse { + debug!(%method, %uri, "unknown route"); Error::BadRequest(ErrorKind::Unrecognized, "Unrecognized request") }