From 92f36d69f7564dc0487e777466a8e37c702a9325 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 22 Nov 2025 12:57:46 -0600 Subject: [PATCH] better error logging in tcp client --- tcp-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp-client.go b/tcp-client.go index df6c0b1..527a1f9 100644 --- a/tcp-client.go +++ b/tcp-client.go @@ -111,7 +111,7 @@ func (tc *TCPClient) Run() error { slog.Debug("router context done in module", "id", tc.config.Id) return nil } - slog.Error(err.Error()) + slog.Error("net.tcp.client", "id", tc.config.Id, "error", err.Error()) time.Sleep(time.Second * 2) continue }