Skip to content

Commit

Permalink
drop dead server log spam to debug
Browse files Browse the repository at this point in the history
Signed-off-by: strawberry <[email protected]>
  • Loading branch information
girlbossceo committed Mar 10, 2024
1 parent 742c869 commit e888a0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/server_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,22 +305,22 @@ where
// we do not need to log that servers in a room are dead, this is normal in
// public rooms and just spams the logs.
match e.is_timeout() {
true => info!(
true => debug!(
"Timed out sending request to {} at {}: {}",
destination, actual_destination_str, e
),
false => match e.is_connect() {
true => info!("Failed to connect to {} at {}: {}", destination, actual_destination_str, e),
true => debug!("Failed to connect to {} at {}: {}", destination, actual_destination_str, e),
false => match e.is_redirect() {
true => info!(
true => debug!(
"Redirect loop sending request to {} at {}: {}\nFinal URL: {:?}",
destination,
actual_destination_str,
e,
e.url()
),
false => {
warn!("Could not send request to {} at {}: {}", destination, actual_destination_str, e)
info!("Could not send request to {} at {}: {}", destination, actual_destination_str, e)
},
},
},
Expand Down Expand Up @@ -520,7 +520,7 @@ async fn request_well_known(destination: &str) -> Option<String> {
debug!("Well known response text: {:?}", text);

if text.as_ref().ok()?.len() > 10000 {
info!(
debug!(
"Well known response for destination '{destination}' exceeded past 10000 characters, assuming no \
well-known."
);
Expand Down

0 comments on commit e888a0a

Please sign in to comment.