reduce noise generated by dead homeservers

This commit is contained in:
Charles Hall 2024-06-04 17:21:04 -07:00
parent 419af07b97
commit 2da85c96fc
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -286,8 +286,23 @@ impl Service {
})) }))
} }
} }
Err(_err) => { Err(e) => {
warn!("Marking transaction as failed"); match e {
// 410,757,864,530 DEAD HOMESERVERS
//
// Just ignore them
Error::Reqwest {
..
} => {}
Error::Federation(_, e)
if e.status_code.is_server_error()
|| e.status_code == 404 => {}
_ => {
warn!("Marking transaction as failed");
}
}
current_transaction_status.entry(destination).and_modify(|e| { current_transaction_status.entry(destination).and_modify(|e| {
*e = match e { *e = match e {
TransactionStatus::Running => { TransactionStatus::Running => {