From 3083ec5e32b0f022af03f5420d717bddbaa8e71c Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Tue, 26 May 2015 16:10:28 +0300 Subject: eth/downloader: silence "Added N blocks from..." if N == 0 --- eth/downloader/downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 0634baaed..421c336f2 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -415,7 +415,7 @@ out: peer.Demote() break } - if glog.V(logger.Debug) { + if glog.V(logger.Debug) && len(blockPack.blocks) > 0 { glog.Infof("Added %d blocks from: %s\n", len(blockPack.blocks), blockPack.peerId) } // Promote the peer and update it's idle state -- cgit