Skip to content

Commit 98a8084

Browse files
committed
chore: log consensus and block hashes when processing fails
1 parent eda674c commit 98a8084

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stackslib/src/net/relay.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,11 @@ impl Relayer {
11231123
) {
11241124
Ok(x) => x,
11251125
Err(e) => {
1126-
warn!("Failed to process Nakamoto block {}: {:?}", &block_id, &e);
1126+
warn!("Failed to process Nakamoto block: {e:?}";
1127+
"block_id" => %block_id,
1128+
"consensus_hash" => %block.header.consensus_hash,
1129+
"stacks_block_hash" => %block.header.block_hash(),
1130+
);
11271131
continue;
11281132
}
11291133
};

0 commit comments

Comments
 (0)