From f06741428cddecb70c9afea719e7ea071a1cc69c Mon Sep 17 00:00:00 2001 From: yusing Date: Thu, 1 May 2025 06:46:24 +0800 Subject: [PATCH] fix(idlewatcher): log error and retry instead instead of stopping --- internal/idlewatcher/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/idlewatcher/watcher.go b/internal/idlewatcher/watcher.go index 42ce4d8..6a3b0aa 100644 --- a/internal/idlewatcher/watcher.go +++ b/internal/idlewatcher/watcher.go @@ -262,7 +262,7 @@ func (w *Watcher) watchUntilDestroy() (returnCause gperr.Error) { case <-w.task.Context().Done(): return gperr.Wrap(w.task.FinishCause()) case err := <-errCh: - return err + gperr.LogError("watcher error", err, &w.l) case e := <-eventCh: w.l.Debug().Stringer("action", e.Action).Msg("state changed") if e.Action == events.ActionContainerDestroy {