From 1e21275ad5f03e9ee6d0fa3b49880634232f23d2 Mon Sep 17 00:00:00 2001 From: matst80 Date: Wed, 13 Nov 2024 09:40:41 +0100 Subject: [PATCH] even more logs --- tcp-cart-client.go | 1 + tcp-client.go | 1 + 2 files changed, 2 insertions(+) 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