Skip to content

Commit

Permalink
ensure the engine logs error strings
Browse files Browse the repository at this point in the history
Signed-off-by: Jose R. Gonzalez <jose@flutes.dev>
  • Loading branch information
komish authored and bcrochet committed Mar 22, 2023
1 parent 67cacf8 commit 103f4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (c *CraneEngine) ExecuteChecks(ctx context.Context) error {
checkElapsedTime := time.Since(checkStartTime)

if err != nil {
logger.WithValues("result", "ERROR", "err", err).Info("check completed", "check", check.Name())
logger.WithValues("result", "ERROR", "err", err.Error()).Info("check completed", "check", check.Name())
c.results.Errors = appendUnlessOptional(c.results.Errors, certification.Result{Check: check, ElapsedTime: checkElapsedTime})
continue
}
Expand Down

0 comments on commit 103f4b5

Please sign in to comment.