clean up few unnecessary warnings

Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
girlbossceo 2023-10-21 16:15:42 -04:00
parent 05c08c8529
commit 22eff2d29c
2 changed files with 25 additions and 5 deletions

View file

@ -315,10 +315,30 @@ where
}
}
Err(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())
}
}

View file

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