Skip to content

Commit

Permalink
chore: fixed consensus error logging (#2219)
Browse files Browse the repository at this point in the history
"%err" is just printing the leaf message which is not useful. "{err:#}"
prints the whole stack trace, as desired.
pompon0 authored Jun 12, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jeff-mccoy Megamind
1 parent 836473f commit f529a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/consensus/src/era.rs
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ pub async fn run_main_node(
// For now in case of error we just log it and allow the server
// to continue running.
if let Err(err) = super::run_main_node(ctx, cfg, secrets, ConnectionPool(pool)).await {
tracing::error!(%err, "Consensus actor failed");
tracing::error!("Consensus actor failed: {err:#}");
} else {
tracing::info!("Consensus actor stopped");
}

0 comments on commit f529a45

Please sign in to comment.