more connection logging consistency
This commit is contained in:
1 parent
1235441556
commit
cc8fad47dd
2 files changed
+3
-3
No files matched your search
@@ -198,9 +198,9 @@ func (cm *ConnectionMaker) status() string {
|
||||
}
|
||||
|
||||
func (cm *ConnectionMaker) attemptConnection(address string, acceptNewPeer bool) {
|
||||
log.Println("Attempting connection to", address)
|
||||
log.Printf("->[%s] attempting connection\n", address)
|
||||
if err := cm.ourself.CreateConnection(address, acceptNewPeer); err != nil {
|
||||
log.Println(err)
|
||||
log.Printf("->[%s] error during connection attempt: %v\n", err)
|
||||
cm.ConnectionTerminated(address)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user