From bcc1aadea9a70e9c09c79541ad80bc2205c038c8 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Fri, 12 Jun 2015 13:48:59 -0700 Subject: [PATCH] rafthttp: fix the misformat logging line before: ``` 2015/06/12 20:06:19 rafthttp: dropped MsgApp from %!s(uint64=2) since receiving buffer is full ``` after: ``` 2015/06/12 13:51:38 rafthttp: dropped MsgProp from 2 since receiving buffer is full ``` --- rafthttp/stream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rafthttp/stream.go b/rafthttp/stream.go index f9410dd32..b66f303e0 100644 --- a/rafthttp/stream.go +++ b/rafthttp/stream.go @@ -360,9 +360,9 @@ func (cr *streamReader) decodeLoop(rc io.ReadCloser, t streamType) error { case recvc <- m: default: if cr.status.isActive() { - plog.Warningf("dropped %s from %s since receiving buffer is full", m.Type, m.From) + plog.Warningf("dropped %s from %s since receiving buffer is full", m.Type, types.ID(m.From)) } else { - plog.Debugf("dropped %s from %s since receiving buffer is full", m.Type, m.From) + plog.Debugf("dropped %s from %s since receiving buffer is full", m.Type, types.ID(m.From)) } } }