Skip to content

Commit 3150755

Browse files
committed
fix log format
1 parent c840e7f commit 3150755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/remote_state_verifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (vt *verifyTask) Start(verifyCh chan common.Hash) {
301301
vt.badPeers[msg.peerId] = struct{}{}
302302
log.Info("peer is not available", "hash", msg.verifyResult.BlockHash, "number", msg.verifyResult.BlockNumber, "peer", msg.peerId, "reason", msg.verifyResult.Status.Msg)
303303
case types.StatusBlockTooNew, types.StatusBlockNewer, types.StatusPossibleFork:
304-
log.Info("return msg from peer %s for block %s is %s", msg.peerId, msg.verifyResult.BlockHash, msg.verifyResult.Status.Msg)
304+
log.Info("return msg from peer", "peerId", msg.peerId, "hash", msg.verifyResult.BlockHash, "msg", msg.verifyResult.Status.Msg)
305305
}
306306
newVerifyMsgTypeGauge(msg.verifyResult.Status.Code, msg.peerId).Inc(1)
307307
case <-resend.C:

0 commit comments

Comments
 (0)