Skip to content

Commit

Permalink
fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is miss…
Browse files Browse the repository at this point in the history
…ing (runatlantis#3996)

* fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is missing

* fix: remove  mr.HeadPipeline.Source from other log
  • Loading branch information
fitz7 authored Dec 7, 2023
1 parent 6391d60 commit 0f8db49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/events/vcs/gitlab_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ func (g *GitlabClient) UpdateStatus(repo models.Repo, pull models.PullRequest, s
break
}
if i != retries {
g.logger.Debug("Head pipeline not found for merge request %d, source '%s'. Retrying in %s",
pull.Num, mr.HeadPipeline.Source, delay)
g.logger.Debug("Head pipeline not found for merge request %d. Retrying in %s",
pull.Num, delay)
time.Sleep(delay)
} else {
g.logger.Debug("Head pipeline not found for merge request %d, source '%s'.",
pull.Num, mr.HeadPipeline.Source)
g.logger.Debug("Head pipeline not found for merge request %d.",
pull.Num)
}
}

Expand Down

0 comments on commit 0f8db49

Please sign in to comment.