From 22eff2d29c37dc2408aa57e351eb35825b2e1923 Mon Sep 17 00:00:00 2001
From: girlbossceo <june@girlboss.ceo>
Date: Sat, 21 Oct 2023 16:15:42 -0400
Subject: [PATCH] clean up few unnecessary warnings

Signed-off-by: girlbossceo <june@girlboss.ceo>
---
 src/api/server_server.rs               | 28 ++++++++++++++++++++++----
 src/service/rooms/event_handler/mod.rs |  2 +-
 2 files changed, 25 insertions(+), 5 deletions(-)

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;
                 }