mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
better error logging in tcp client
This commit is contained in:
@@ -111,7 +111,7 @@ func (tc *TCPClient) Run() error {
|
|||||||
slog.Debug("router context done in module", "id", tc.config.Id)
|
slog.Debug("router context done in module", "id", tc.config.Id)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
slog.Error(err.Error())
|
slog.Error("net.tcp.client", "id", tc.config.Id, "error", err.Error())
|
||||||
time.Sleep(time.Second * 2)
|
time.Sleep(time.Second * 2)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user