Commit 365eea9f authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

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

eth/downloader: silence "Added N blocks from..." if N == 0
parents eae09275 3083ec5e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment