Skip to content

Commit

Permalink
Improve debug error message (#179)
Browse files Browse the repository at this point in the history
* improve debug error message

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
mhils and autofix-ci[bot] authored Oct 1, 2024
1 parent 15731b5 commit 7d7b294
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ pub async fn shutdown_task(mut tasks: JoinSet<Result<()>>, shutdown_done: broadc
match task {
Ok(Ok(())) => (),
Ok(Err(error)) => {
log::error!("Task failed: {}\n{}", error, error.backtrace().to_string());
log::error!(
"Task failed: {:?}\n{}",
error,
error.backtrace().to_string()
);
tasks.shutdown().await;
}
Err(error) => {
Expand Down

0 comments on commit 7d7b294

Please sign in to comment.