From 573fac553c74b50eddac4b00a5f6b96a0742d15a Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Sat, 22 Jun 2024 16:21:39 -0700 Subject: [PATCH] promote request error event from info to warn And also make it structured. --- src/utils/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/error.rs b/src/utils/error.rs index 3b165767..eabfd943 100644 --- a/src/utils/error.rs +++ b/src/utils/error.rs @@ -9,7 +9,7 @@ use ruma::{ OwnedServerName, }; use thiserror::Error; -use tracing::{error, info}; +use tracing::{error, warn}; use crate::Ra; @@ -149,7 +149,7 @@ impl Error { _ => (Unknown, StatusCode::INTERNAL_SERVER_ERROR), }; - info!("Returning an error: {}: {}", status_code, message); + warn!(%status_code, error = %message, "Responding with an error"); Ra(UiaaResponse::MatrixError(RumaError { body: ErrorBody::Standard {