Skip to content

Commit 71444a1

Browse files
Log egressID in io client worker (#1054)
1 parent e1e3606 commit 71444a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/info/io.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (c *ioClient) handleUpdate(w *worker, egressID string) {
212212
if _, err := c.IOInfoClient.UpdateEgress(u.ctx, u.info, psrpc.WithRequestTimeout(c.updateTimeout)); err != nil {
213213
if isRetryableError(err) {
214214
if c.healthy.Swap(false) {
215-
logger.Warnw("io connection unhealthy", err)
215+
logger.Warnw("io connection unhealthy", err, "egressID", u.info.EgressId)
216216
}
217217
d = min(d*2, maxBackoff)
218218
time.Sleep(d)
@@ -224,7 +224,7 @@ func (c *ioClient) handleUpdate(w *worker, egressID string) {
224224
}
225225

226226
if !c.healthy.Swap(true) {
227-
logger.Infow("io connection restored")
227+
logger.Infow("io connection restored", "egressID", u.info.EgressId)
228228
}
229229
requestType, outputType := egress.GetTypes(u.info.Request)
230230
logger.Infow(strings.ToLower(u.info.Status.String()),

0 commit comments

Comments
 (0)