aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-27 00:45:44 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-27 00:45:44 +0800
commit365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6 (patch)
tree1df3bb0200297904f510a84691f59b42e934ed61
parenteae092759760341912dcc52d8287642b62abf889 (diff)
parent3083ec5e32b0f022af03f5420d717bddbaa8e71c (diff)
downloaddexon-365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6.tar
dexon-365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6.tar.gz
dexon-365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6.tar.bz2
dexon-365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6.tar.lz
dexon-365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6.tar.xz
dexon-365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6.tar.zst
dexon-365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6.zip
Merge pull request #1106 from karalabe/silence-useless-downloader-log
eth/downloader: silence "Added N blocks from..." if N == 0
-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