diff --git a/internal/source/gitlab/gitlab_poll.go b/internal/source/gitlab/gitlab_poll.go index 0284449a7e6807e49312f518fad5884d5851aa6d..117216d7b7a2b02e95c10c298fad6a587b4ee1d8 100644 --- a/internal/source/gitlab/gitlab_poll.go +++ b/internal/source/gitlab/gitlab_poll.go @@ -23,7 +23,12 @@ func (g *Gitlab) poll(interval, maxElapsedTime time.Duration) { operation := func() error { log.Info("Checking GitLab internal API availability") - return g.client.Status() + err := g.client.Status() + if err != nil { + log.WithError(err).Warn("attempted to connect to the API") + } + + return err } err := backoff.Retry(operation, backOff)