diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-26 21:10:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-26 21:10:28 +0800 |
commit | 3083ec5e32b0f022af03f5420d717bddbaa8e71c (patch) | |
tree | 388bd4a47a89bbb908b76dceaa1db1a1e0cef517 /eth/downloader/downloader.go | |
parent | d74ee40c86fed3a48d88de1094efc0a2f464b659 (diff) | |
download | dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.gz dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.bz2 dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.lz dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.xz dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.zst dexon-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.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 |