Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-04-07 08:11:04 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-04-07 08:16:47 +0300
commit7298e8fd04d58844d2c0fd11051318b392c02ecd (patch)
tree057d4cc74b441a0ab337b8a8e451c5170eef14f4
parent5185001f2e73bfa980f53b5192a623d0f902da33 (diff)
Log connection attempt errorslog-api-conn-errors
Changelog: added
-rw-r--r--internal/source/gitlab/gitlab_poll.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/source/gitlab/gitlab_poll.go b/internal/source/gitlab/gitlab_poll.go
index 0284449a..117216d7 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)