From e7faa78d7c3ba2b0379b9e1bca52f12f3fe22ea9 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 29 Aug 2017 19:42:33 -0700 Subject: [PATCH] log when dropping messages --- floodsub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/floodsub.go b/floodsub.go index c252148..b21caad 100644 --- a/floodsub.go +++ b/floodsub.go @@ -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. } }