improve route-not-found tracing event

This commit is contained in:
Charles Hall 2024-05-30 16:43:49 -07:00
parent 04ecf4972e
commit c1ec1111ae
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -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")
}