refactor(checker): consolidate error logging for proxy checking tasks

This commit is contained in:
monosans
2025-06-24 08:43:14 +03:00
parent 60e6ed2c89
commit 86a395f395
+4 -5
View File
@@ -70,11 +70,10 @@ pub async fn check_all(
return Err(e).wrap_err("proxy checking task failed");
}
Err(e) => {
if e.is_panic() {
tracing::error!("proxy checking task panicked: {}", e);
} else {
tracing::error!("proxy checking task was cancelled: {}", e);
}
tracing::error!(
"proxy checking task panicked or was cancelled: {}",
e
);
}
}
}