mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix(idlewatcher): log error and retry instead instead of stopping
This commit is contained in:
parent
16e6e72454
commit
f06741428c
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ func (w *Watcher) watchUntilDestroy() (returnCause gperr.Error) {
|
||||||
case <-w.task.Context().Done():
|
case <-w.task.Context().Done():
|
||||||
return gperr.Wrap(w.task.FinishCause())
|
return gperr.Wrap(w.task.FinishCause())
|
||||||
case err := <-errCh:
|
case err := <-errCh:
|
||||||
return err
|
gperr.LogError("watcher error", err, &w.l)
|
||||||
case e := <-eventCh:
|
case e := <-eventCh:
|
||||||
w.l.Debug().Stringer("action", e.Action).Msg("state changed")
|
w.l.Debug().Stringer("action", e.Action).Msg("state changed")
|
||||||
if e.Action == events.ActionContainerDestroy {
|
if e.Action == events.ActionContainerDestroy {
|
||||||
|
|
Loading…
Add table
Reference in a new issue