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) => {
|
Err(e) => {
|
||||||
warn!(
|
if e.is_timeout() {
|
||||||
"Could not send request to {} at {}: {}",
|
info!(
|
||||||
destination, actual_destination_str, e
|
"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())
|
Err(e.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1229,7 +1229,7 @@ impl Service {
|
||||||
|
|
||||||
if amount > services().globals.max_fetch_prev_events() {
|
if amount > services().globals.max_fetch_prev_events() {
|
||||||
// Max limit reached
|
// Max limit reached
|
||||||
warn!("Max prev event limit reached!");
|
info!("Max prev event limit reached!");
|
||||||
graph.insert(prev_event_id.clone(), HashSet::new());
|
graph.insert(prev_event_id.clone(), HashSet::new());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue