Skip to content

Commit c125757

Browse files
authored
Merge pull request #6125 from obycode/chore/log-improvements
Chore: log improvements
2 parents 9dd349d + 3549505 commit c125757

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,7 @@ impl Signer {
15781578
{
15791579
info!("{self}: Have not processed parent of block proposal yet, inserting pending block validation and will try again later";
15801580
"signer_signature_hash" => %signer_signature_hash,
1581+
"parent_block_id" => %block.header.parent_block_id,
15811582
);
15821583
self.signer_db
15831584
.insert_pending_block_validation(&signer_signature_hash, added_epoch_time)

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)