From 60dfab55227e9452abe35765dbae6d191a8f5406 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 12 Dec 2024 06:46:49 +0800 Subject: Use CID instead of connection pointers while logging --- clients.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clients.go') diff --git a/clients.go b/clients.go index abf7283..eb97ebe 100644 --- a/clients.go +++ b/clients.go @@ -27,7 +27,7 @@ func (client *Client) SendRaw(s string) error { if client.conn == nil { panic("not implemented") } - slog.Debug("send", "line", s, "conn", client.conn) + slog.Debug("send", "line", s, "client", client.CID) _, err := (*client.conn).Write([]byte(s)) if err != nil { // TODO: Should shut down the netFd instead but the stdlib -- cgit v1.2.3