Skip to content

Commit 7b8f367

Browse files
author
Yunshi Sun
authored
Merge pull request #33 from renproject/debug/timeout-logs
Add warning log upon prevote/precommit timeout
2 parents 5800cd8 + 0f559cc commit 7b8f367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

process/process.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (p *Process) timeoutPropose(height block.Height, round block.Round) {
364364
p.state.CurrentRound,
365365
block.InvalidHash,
366366
)
367-
p.logger.Debugf("prevoted=<nil> at height=%v and round=%v (timeout)", prevote.height, prevote.round)
367+
p.logger.Warnf("prevoted=<nil> at height=%v and round=%v (timeout)", prevote.height, prevote.round)
368368
p.state.CurrentStep = StepPrevote
369369
p.broadcaster.Broadcast(prevote)
370370
}
@@ -377,7 +377,7 @@ func (p *Process) timeoutPrevote(height block.Height, round block.Round) {
377377
p.state.CurrentRound,
378378
block.InvalidHash,
379379
)
380-
p.logger.Debugf("precommitted=<nil> at height=%v and round=%v (timeout)", precommit.height, precommit.round)
380+
p.logger.Warnf("precommitted=<nil> at height=%v and round=%v (timeout)", precommit.height, precommit.round)
381381
p.state.CurrentStep = StepPrecommit
382382
p.broadcaster.Broadcast(precommit)
383383
}

0 commit comments

Comments
 (0)