From 1928c1bd79326e4523377944939aa9eff4063033 Mon Sep 17 00:00:00 2001 From: Andrew Fitzpatrick Date: Thu, 7 Dec 2023 04:53:27 +0000 Subject: [PATCH] fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is missing (#3996) * fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is missing * fix: remove mr.HeadPipeline.Source from other log --- server/events/vcs/gitlab_client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/events/vcs/gitlab_client.go b/server/events/vcs/gitlab_client.go index b159e3d83b..84602c069c 100644 --- a/server/events/vcs/gitlab_client.go +++ b/server/events/vcs/gitlab_client.go @@ -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) } }