diff --git a/pkg/events/check.go b/pkg/events/check.go index 485b3bf5..2970e510 100644 --- a/pkg/events/check.go +++ b/pkg/events/check.go @@ -379,8 +379,14 @@ func (ce *CheckEvent) createRunner(span trace.Span, grpCtx context.Context, app }() ce.logger.Info().Str("app", app).Str("check", desc).Msgf("running check") - cr, err := fn() + ce.logger.Info(). + Err(err). + Str("app", app). + Str("check", desc). + Uint8("result", uint8(cr.State)). + Msg("check result") + if err != nil { telemetry.SetError(span, err, desc) result := pkg.CheckResult{State: pkg.StateError, Summary: desc, Details: fmt.Sprintf(errorCommentFormat, desc, err)} diff --git a/pkg/vcs/gitlab_client/status.go b/pkg/vcs/gitlab_client/status.go index 5a974662..a2e2b2d9 100644 --- a/pkg/vcs/gitlab_client/status.go +++ b/pkg/vcs/gitlab_client/status.go @@ -46,7 +46,12 @@ func (c *Client) CommitStatus(ctx context.Context, repo *repo.Repo, state pkg.Co status.PipelineID = &pipelineStatus.ID } - log.Debug().Str("project", repo.FullName).Str("commit_sha", repo.SHA).Msg("gitlab client: updating commit status") + log.Debug(). + Str("project", repo.FullName). + Str("commit_sha", repo.SHA). + Str("kubechecks_status", state.String()). + Str("gitlab_status", string(status.State)). + Msg("gitlab client: updating commit status") _, err = c.setCommitStatus(repo.FullName, repo.SHA, status) if err != nil { log.Error().Err(err).Str("project", repo.FullName).Msg("gitlab client: could not set commit status")