diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-07 05:49:52 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-07 05:49:52 +0800 |
commit | a0cb1945aeac215b1909ff0063b66171ebe73c70 (patch) | |
tree | fc07f2354402ef786a4196c3a4d29be7d703806c /whisper/whisper.go | |
parent | b719801db0bc80b49f05b249e2d4cf322c09eb24 (diff) | |
parent | 3e2a928caa74e523f43e14eec9918033ac1cbe0a (diff) | |
download | dexon-a0cb1945aeac215b1909ff0063b66171ebe73c70.tar dexon-a0cb1945aeac215b1909ff0063b66171ebe73c70.tar.gz dexon-a0cb1945aeac215b1909ff0063b66171ebe73c70.tar.bz2 dexon-a0cb1945aeac215b1909ff0063b66171ebe73c70.tar.lz dexon-a0cb1945aeac215b1909ff0063b66171ebe73c70.tar.xz dexon-a0cb1945aeac215b1909ff0063b66171ebe73c70.tar.zst dexon-a0cb1945aeac215b1909ff0063b66171ebe73c70.zip |
Merge pull request #866 from fjl/p2p-last-minute
Last minute p2p fixes
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r-- | whisper/whisper.go | 4 |
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) } |