From a094681dae903b0b4ae16af6ef668088529d64bf Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 7 Feb 2017 18:38:39 -0800 Subject: [PATCH] routing: only log pre-mature announcements if we have any --- routing/router.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routing/router.go b/routing/router.go index f6d2234c..e3ef22db 100644 --- a/routing/router.go +++ b/routing/router.go @@ -384,8 +384,10 @@ func (r *ChannelRouter) networkHandler() { // for this height, if so, then we process them once // more as normal announcements. prematureAnns := r.prematureAnnouncements[uint32(newBlock.Height)] - log.Infof("Re-processing %v premature announcements for "+ - "height %v", len(prematureAnns), blockHeight) + if len(prematureAnns) != 0 { + log.Infof("Re-processing %v premature announcements for "+ + "height %v", len(prematureAnns), blockHeight) + } for _, ann := range prematureAnns { if ok := r.processNetworkAnnouncement(ann); ok {