Skip to content

Commit

Permalink
feat(log) Display error string when error is handled
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Péronnet <[email protected]>
  • Loading branch information
holyhope committed Mar 25, 2021
1 parent 463b7e6 commit 30aed8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (c *Controller) HandleError(ctx context.Context, resource runtime.Object, r
return ctrl.Result{}, errors.Wrap(resultError, errors.Wrap(err, "cannot set status to error").Error())
}

logger.Get(ctx).Info("error handled")
logger.Get(ctx).Info("error reported to resource status", "error", resultError.Error())

return ctrl.Result{}, nil
}

0 comments on commit 30aed8f

Please sign in to comment.