Skip to content

Commit

Permalink
action should use context.EventLog to write log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
romangithub1024 committed Jun 10, 2018
1 parent 87e5a4f commit 12168a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/apply/engine_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (apply *EngineApply) Apply(maxConcurrentActions int) (*resolve.PolicyResolu
result := apply.actionPlan.Apply(action.WrapParallelWithLimit(maxConcurrentActions, func(act action.Base) error {
err := act.Apply(context)
if err != nil {
apply.eventLog.NewEntry().Errorf("error while applying action '%s': %s", act, err)
context.EventLog.NewEntry().Errorf("error while applying action '%s': %s", act, err)
}
return err
}), apply.updater)
Expand Down

0 comments on commit 12168a4

Please sign in to comment.