aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-26 21:10:28 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-26 21:10:28 +0800
commit3083ec5e32b0f022af03f5420d717bddbaa8e71c (patch)
tree388bd4a47a89bbb908b76dceaa1db1a1e0cef517 /eth/downloader/downloader.go
parentd74ee40c86fed3a48d88de1094efc0a2f464b659 (diff)
downloadgo-tangerine-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar
go-tangerine-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.gz
go-tangerine-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.bz2
go-tangerine-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.lz
go-tangerine-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.xz
go-tangerine-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.zst
go-tangerine-3083ec5e32b0f022af03f5420d717bddbaa8e71c.zip
eth/downloader: silence "Added N blocks from..." if N == 0
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
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