mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
Improve error message when essential task failed (#5918)
* Initial commit
Forked at: 9acf88f58b
Parent branch: origin/master
* Improve error message when essential task failed
This commit is contained in:
@@ -255,7 +255,7 @@ where
|
||||
let essential_task = std::panic::AssertUnwindSafe(task)
|
||||
.catch_unwind()
|
||||
.map(move |_| {
|
||||
error!("Essential task failed. Shutting down service.");
|
||||
error!("Essential task `{}` failed. Shutting down service.", name);
|
||||
let _ = essential_failed.send(());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user