diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-27 00:45:44 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-27 00:45:44 +0800 |
commit | 365eea9fba13025c9f0f4fcb48ba8d670ec6d8c6 (patch) | |
tree | 1df3bb0200297904f510a84691f59b42e934ed61 | |
parent | eae092759760341912dcc52d8287642b62abf889 (diff) | |
parent | 3083ec5e32b0f022af03f5420d717bddbaa8e71c (diff) | |
download | dexon-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.go | 2 |
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 |