From cd4342103d0fe8c0621d737cd918543f5a51e7f4 Mon Sep 17 00:00:00 2001 From: Ameziane H Date: Fri, 12 Apr 2024 15:14:10 +0200 Subject: [PATCH] Change block miner log to include all the performance number on one line with Info level Signed-off-by: Ameziane H --- .../besu/ethereum/blockcreation/BlockMiner.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/BlockMiner.java b/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/BlockMiner.java index bdeac24be10..646e6d52510 100644 --- a/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/BlockMiner.java +++ b/ethereum/blockcreation/src/main/java/org/hyperledger/besu/ethereum/blockcreation/BlockMiner.java @@ -170,16 +170,15 @@ protected boolean mineBlock() throws InterruptedException { private void logProducedBlock(final Block block, final BlockCreationTiming blockCreationTiming) { LOG.info( String.format( - "Produced #%,d / %d tx / %d om / %,d (%01.1f%%) gas / (%s) in %01.3fs", + "Produced #%,d / %d tx / %d om / %,d (%01.1f%%) gas / (%s) in %01.3fs / Timing(%s)", block.getHeader().getNumber(), block.getBody().getTransactions().size(), block.getBody().getOmmers().size(), block.getHeader().getGasUsed(), (block.getHeader().getGasUsed() * 100.0) / block.getHeader().getGasLimit(), block.getHash(), - blockCreationTiming.end("log").toMillis() / 1000.0)); - - LOG.debug("Timing #{} / {}", block.getHeader().getNumber(), blockCreationTiming); + blockCreationTiming.end("log").toMillis() / 1000.0, + blockCreationTiming)); } public void cancel() {