From 34657d43d9c78febb8f94534bb62ceb709841198 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 7 Jan 2014 10:34:34 -0600 Subject: [PATCH] Add the useragent to the new valid peer message. This commit modifies the new valid peer message to display the useragent. Previously this information was only available by setting the PEER subsystem debuglevel to debug or lower. This was prompted by #64. --- blockmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockmanager.go b/blockmanager.go index 2acfb7664..7c9bf79ee 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -206,7 +206,7 @@ func (b *blockManager) handleNewPeerMsg(peers *list.List, p *peer) { return } - bmgrLog.Infof("New valid peer %s", p) + bmgrLog.Infof("New valid peer %s (%s)", p, p.userAgent) // Ignore the peer if it's not a sync candidate. if !b.isSyncCandidate(p) {