refactor(checker): consolidate error logging for proxy checking tasks
This commit is contained in:
+4
-5
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user