From cc55430bcbf14d7ff6d26cc6d076bda7e3900cad Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:56:01 +0200 Subject: [PATCH] chore(consensus): always log node_id in consensus module --- node/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/node.go b/node/node.go index 2634b5022..c1d2553d6 100644 --- a/node/node.go +++ b/node/node.go @@ -324,7 +324,7 @@ func makeNode( blockSync := !onlyValidatorIsUs(state, proTxHash) // TODO compare with this: blockSync := cfg.BlockSync.Enable && !weAreOnlyValidator waitSync := stateSync || blockSync - csState, err := consensus.NewState(logger.With("module", "consensus"), + csState, err := consensus.NewState(logger.With("module", "consensus", "node_id", nodeKey.ID), cfg.Consensus, stateStore, blockExec,