upgrade some logs to info
This commit is contained in:
parent
214d07214d
commit
07d7e15485
1 changed files with 4 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ use axum::{
|
||||||
extract::State,
|
extract::State,
|
||||||
response::{IntoResponse, Response},
|
response::{IntoResponse, Response},
|
||||||
};
|
};
|
||||||
use conduwuit::{Result, debug, debug_error, debug_warn, err, error, trace};
|
use conduwuit::{Result, debug_warn, err, error, trace, info};
|
||||||
use conduwuit_service::Services;
|
use conduwuit_service::Services;
|
||||||
use futures::FutureExt;
|
use futures::FutureExt;
|
||||||
use http::{Method, StatusCode, Uri};
|
use http::{Method, StatusCode, Uri};
|
||||||
|
|
@ -102,11 +102,11 @@ fn handle_result(method: &Method, uri: &Uri, result: Response) -> Result<Respons
|
||||||
let reason = status.canonical_reason().unwrap_or("Unknown Reason");
|
let reason = status.canonical_reason().unwrap_or("Unknown Reason");
|
||||||
|
|
||||||
if status.is_server_error() {
|
if status.is_server_error() {
|
||||||
error!(%method, %uri, "{code} {reason}");
|
info!(%method, %uri, "{code} {reason}");
|
||||||
} else if status.is_client_error() {
|
} else if status.is_client_error() {
|
||||||
debug_error!(%method, %uri, "{code} {reason}");
|
info!(%method, %uri, "{code} {reason}");
|
||||||
} else if status.is_redirection() {
|
} else if status.is_redirection() {
|
||||||
debug!(%method, %uri, "{code} {reason}");
|
trace!(%method, %uri, "{code} {reason}");
|
||||||
} else {
|
} else {
|
||||||
trace!(%method, %uri, "{code} {reason}");
|
trace!(%method, %uri, "{code} {reason}");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue