better error logging in tcp client

This commit is contained in:
Joel Wetzell
2025-11-22 12:57:46 -06:00
parent 1791aa17b1
commit 92f36d69f7

View File

@@ -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
}