Adds block production time in logs (#10205)

This commit is contained in:
Alan Sapede
2021-11-06 12:49:53 -04:00
committed by GitHub
parent d99bb13ad9
commit 7827dbb73c
@@ -462,8 +462,9 @@ where
});
info!(
"🎁 Prepared block for proposing at {} [hash: {:?}; parent_hash: {}; extrinsics ({}): [{}]]",
"🎁 Prepared block for proposing at {} ({} ms) [hash: {:?}; parent_hash: {}; extrinsics ({}): [{}]]",
block.header().number(),
block_timer.elapsed().as_millis(),
<Block as BlockT>::Hash::from(block.header().hash()),
block.header().parent_hash(),
block.extrinsics().len(),