Merge pull request #1106 from karalabe/silence-useless-downloader-log

eth/downloader: silence "Added N blocks from..." if N == 0
pull/1111/head
Jeffrey Wilcke 10 years ago
commit 365eea9fba
  1. 2
      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

Loading…
Cancel
Save