diff --git a/pkg/event_handler/main.go b/pkg/event_handler/main.go index 99022f74..67658ff2 100644 --- a/pkg/event_handler/main.go +++ b/pkg/event_handler/main.go @@ -28,8 +28,8 @@ func Start(ctx context.Context, stop context.CancelFunc, cfg *conf.GlobalConfig, } go func() { for event := range watcher.ResultChan() { - err = handler.Handle(ctx, &event) - if err != nil { + err2 := handler.Handle(ctx, &event) + if err2 != nil { log.Printf("[event handler] failed to Handle workflow event %s", err) // ERROR } }