diff --git a/src/api/server_server.rs b/src/api/server_server.rs index a8c58ab7..eefbd3fe 100644 --- a/src/api/server_server.rs +++ b/src/api/server_server.rs @@ -315,10 +315,30 @@ where } } Err(e) => { - warn!( - "Could not send request to {} at {}: {}", - destination, actual_destination_str, e - ); + if e.is_timeout() { + info!( + "Timed out sending request to {} at {}: {}", + destination, actual_destination_str, e + ); + } else if e.is_redirect() { + info!( + "Redirect loop sending request to {} at {}: {}\nFinal URL: {:?}", + destination, + actual_destination_str, + e, + e.url() + ); + } else if e.is_connect() { + info!( + "Failed to connect to {} at {}: {}", + destination, actual_destination_str, e + ); + } else { + warn!( + "Could not send request to {} at {}: {}", + destination, actual_destination_str, e + ); + } Err(e.into()) } } diff --git a/src/service/rooms/event_handler/mod.rs b/src/service/rooms/event_handler/mod.rs index 9e2b9913..e26dfb01 100644 --- a/src/service/rooms/event_handler/mod.rs +++ b/src/service/rooms/event_handler/mod.rs @@ -1229,7 +1229,7 @@ impl Service { if amount > services().globals.max_fetch_prev_events() { // Max limit reached - warn!("Max prev event limit reached!"); + info!("Max prev event limit reached!"); graph.insert(prev_event_id.clone(), HashSet::new()); continue; }