From f75ae58b86629e3ae18e9a70bf99c536a5db1ff4 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:27:52 +0100 Subject: [PATCH] chore: improve logs --- internal/consensus/state.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index edf21edf12..3bac2e6037 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -723,18 +723,18 @@ func (cs *State) handleTimeout( ti timeoutInfo, stateData *StateData, ) { - cs.logger.Trace("received tock", "timeout", ti.Duration, "height", ti.Height, "round", ti.Round, "step", ti.Step) // timeouts must be for current height, round, step if ti.Height != stateData.Height || ti.Round < stateData.Round || (ti.Round == stateData.Round && ti.Step < stateData.Step) { - cs.logger.Debug("ignoring tock because we are ahead", - "height", stateData.Height, - "round", stateData.Round, - "step", stateData.Step.String(), + cs.logger.Trace("ignoring tock because we are ahead", + "timeout", ti.Duration, "tock_height", ti.Height, "tock_round", ti.Round, "tock_step", ti.Step, + "height", stateData.Height, "round", stateData.Round, "step", stateData.Step.String(), ) return } + cs.logger.Trace("received tock", "timeout", ti.Duration, "height", ti.Height, "round", ti.Round, "step", ti.Step) + // the timeout will now cause a state transition cs.mtx.Lock() defer cs.mtx.Unlock()