diff --git a/tcp-cart-client.go b/tcp-cart-client.go index 99be9f6..af77784 100644 --- a/tcp-cart-client.go +++ b/tcp-cart-client.go @@ -25,6 +25,7 @@ func CartDial(address string) (*CartClient, error) { } func (c *Client) Close() { + log.Printf("Closing connection to %s\n", c.PersistentConnection.address) c.PersistentConnection.Close() } diff --git a/tcp-client.go b/tcp-client.go index e05e214..47202b4 100644 --- a/tcp-client.go +++ b/tcp-client.go @@ -68,6 +68,7 @@ func (m *PersistentConnection) Connect() error { } func (m *PersistentConnection) Close() { + log.Printf("Closing connection to %s\n", m.address) m.Conn.Close() m.Died <- true m.Dead = true