drop dead server log spam to debug

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-10 01:01:47 -05:00 committed by June
parent 742c869cc2
commit e888a0a745

View file

@ -305,14 +305,14 @@ where
// we do not need to log that servers in a room are dead, this is normal in // we do not need to log that servers in a room are dead, this is normal in
// public rooms and just spams the logs. // public rooms and just spams the logs.
match e.is_timeout() { match e.is_timeout() {
true => info!( true => debug!(
"Timed out sending request to {} at {}: {}", "Timed out sending request to {} at {}: {}",
destination, actual_destination_str, e destination, actual_destination_str, e
), ),
false => match e.is_connect() { 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() { false => match e.is_redirect() {
true => info!( true => debug!(
"Redirect loop sending request to {} at {}: {}\nFinal URL: {:?}", "Redirect loop sending request to {} at {}: {}\nFinal URL: {:?}",
destination, destination,
actual_destination_str, actual_destination_str,
@ -320,7 +320,7 @@ where
e.url() e.url()
), ),
false => { 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)
}, },
}, },
}, },
@ -520,7 +520,7 @@ async fn request_well_known(destination: &str) -> Option<String> {
debug!("Well known response text: {:?}", text); debug!("Well known response text: {:?}", text);
if text.as_ref().ok()?.len() > 10000 { if text.as_ref().ok()?.len() > 10000 {
info!( debug!(
"Well known response for destination '{destination}' exceeded past 10000 characters, assuming no \ "Well known response for destination '{destination}' exceeded past 10000 characters, assuming no \
well-known." well-known."
); );