Browse Source

Log client version on connect

Jakob Borg 11 years ago
parent
commit
53898d2c60
1 changed files with 2 additions and 0 deletions
  1. 2 0
      model/model.go

+ 2 - 0
model/model.go

@@ -372,6 +372,8 @@ func (m *Model) ClusterConfig(nodeID string, config protocol.ClusterConfigMessag
 		m.nodeVer[nodeID] = config.ClientName + " " + config.ClientVersion
 	}
 	m.pmut.Unlock()
+
+	l.Infof(`Node %s client is "%s %s"`, nodeID, config.ClientName, config.ClientVersion)
 }
 
 // Close removes the peer from the model and closes the underlying connection if possible.