diff --git a/router/connection_maker.go b/router/connection_maker.go index 9564a61c..00ea25f2 100644 --- a/router/connection_maker.go +++ b/router/connection_maker.go @@ -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) } } diff --git a/router/router.go b/router/router.go index 3b240076..a8b833d3 100644 --- a/router/router.go +++ b/router/router.go @@ -157,7 +157,7 @@ func (router *Router) acceptTCP(tcpConn *net.TCPConn) { // on Port and we wait for them to send us something on UDP to // start. remoteAddrStr := tcpConn.RemoteAddr().String() - log.Printf("->[%s] connection accepted", remoteAddrStr) + log.Printf("->[%s] connection accepted\n", remoteAddrStr) connRemote := NewRemoteConnection(router.Ourself.Peer, nil, remoteAddrStr) NewLocalConnection(connRemote, true, tcpConn, nil, router) }