log when dropping messages

This commit is contained in:
Steven Allen 2017-08-29 19:42:33 -07:00
parent 02b9c5724d
commit e7faa78d7c
1 changed files with 1 additions and 0 deletions

View File

@ -346,6 +346,7 @@ func (p *PubSub) publishMessage(from peer.ID, msg *pb.Message) error {
select {
case mch <- out:
default:
log.Infof("dropping message to peer %s: queue full", pid)
// Drop it. The peer is too slow.
}
}