aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-05-07 05:19:14 +0800
committerFelix Lange <fjl@twurst.com>2015-05-07 05:19:14 +0800
commit6a2fec5309e14df6b5fcd0fb76d5b123565d40d4 (patch)
tree4d3cf815e5b3ba2a9603825cef3bbd052f3b69b0 /whisper/whisper.go
parentbcfd7886619c9bc16f523f89ddd012cb53aa7159 (diff)
downloadgo-tangerine-6a2fec5309e14df6b5fcd0fb76d5b123565d40d4.tar
go-tangerine-6a2fec5309e14df6b5fcd0fb76d5b123565d40d4.tar.gz
go-tangerine-6a2fec5309e14df6b5fcd0fb76d5b123565d40d4.tar.bz2
go-tangerine-6a2fec5309e14df6b5fcd0fb76d5b123565d40d4.tar.lz
go-tangerine-6a2fec5309e14df6b5fcd0fb76d5b123565d40d4.tar.xz
go-tangerine-6a2fec5309e14df6b5fcd0fb76d5b123565d40d4.tar.zst
go-tangerine-6a2fec5309e14df6b5fcd0fb76d5b123565d40d4.zip
p2p, whisper: use glog for peer-level logging
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r--whisper/whisper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index a48e1e380..994b4e506 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -197,14 +197,14 @@ func (self *Whisper) handlePeer(peer *p2p.Peer, rw p2p.MsgReadWriter) error {
}
var envelopes []*Envelope
if err := packet.Decode(&envelopes); err != nil {
- peer.Infof("failed to decode enveloped: %v", err)
+ glog.V(logger.Info).Infof("%v: failed to decode envelope: %v", peer, err)
continue
}
// Inject all envelopes into the internal pool
for _, envelope := range envelopes {
if err := self.add(envelope); err != nil {
// TODO Punish peer here. Invalid envelope.
- peer.Debugf("failed to pool envelope: %f", err)
+ glog.V(logger.Debug).Infof("%v: failed to pool envelope: %v", peer, err)
}
whisperPeer.mark(envelope)
}