mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
promote request error event from info to warn
And also make it structured.
This commit is contained in:
parent
230172718f
commit
573fac553c
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue