clean up few unnecessary warnings
Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
05c08c8529
commit
22eff2d29c
2 changed files with 25 additions and 5 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue