mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 13:32:16 +00:00
Set log level for 404
This commit is contained in:
10
src/app.rs
10
src/app.rs
@@ -126,13 +126,19 @@ pub fn make_app<AS: AddressbookStore, CS: CalendarStore, S: SubscriptionStore>(
|
||||
if response.status().is_server_error() {
|
||||
tracing::error!("server error");
|
||||
} else if response.status().is_client_error() {
|
||||
if response.status() == StatusCode::UNAUTHORIZED {
|
||||
match response.status() {
|
||||
StatusCode::UNAUTHORIZED => {
|
||||
// The iOS client always tries an unauthenticated request first so
|
||||
// logging 401's as errors would clog up our logs
|
||||
tracing::debug!("unauthorized");
|
||||
} else {
|
||||
}
|
||||
StatusCode::NOT_FOUND => {
|
||||
tracing::warn!("client error");
|
||||
}
|
||||
_ => {
|
||||
tracing::error!("client error");
|
||||
}
|
||||
}
|
||||
};
|
||||
})
|
||||
.on_failure(
|
||||
|
||||
Reference in New Issue
Block a user