mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
improve route-not-found tracing event
This commit is contained in:
parent
04ecf4972e
commit
c1ec1111ae
1 changed files with 2 additions and 2 deletions
|
|
@ -504,8 +504,8 @@ async fn federation_disabled(_: Uri) -> impl IntoResponse {
|
||||||
Error::bad_config("Federation is disabled.")
|
Error::bad_config("Federation is disabled.")
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn not_found(uri: Uri) -> impl IntoResponse {
|
async fn not_found(method: Method, uri: Uri) -> impl IntoResponse {
|
||||||
warn!("Not found: {uri}");
|
debug!(%method, %uri, "unknown route");
|
||||||
Error::BadRequest(ErrorKind::Unrecognized, "Unrecognized request")
|
Error::BadRequest(ErrorKind::Unrecognized, "Unrecognized request")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue