diff --git a/tcp-client.go b/tcp-client.go index 7ce7163..5396e71 100644 --- a/tcp-client.go +++ b/tcp-client.go @@ -58,10 +58,10 @@ func (m *PersistentConnection) Connect() error { for { connection, err := net.Dial("tcp", m.address) if err != nil { - log.Printf("Can't connect to %s: %v\n, count: %d", m.address, err, fails) + log.Printf("Can't connect to %s: %v, count: %d", m.address, err, fails) fails++ if fails > 15 { - log.Printf("Too many connection failures, closing connection to %s\n", m.address) + log.Printf("Too many connection failures, closing connection to %s", m.address) m.Died <- true m.Dead = true return err