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:
authorVladimir Shushlin <vshushlin@gitlab.com>2021-04-07 15:55:45 +0300
committerVladimir Shushlin <vshushlin@gitlab.com>2021-04-07 15:55:45 +0300
commitbda06683de6d93aeaff8d3c7357983ed7f0ccfc7 (patch)
tree057d4cc74b441a0ab337b8a8e451c5170eef14f4
parent5185001f2e73bfa980f53b5192a623d0f902da33 (diff)
parent7298e8fd04d58844d2c0fd11051318b392c02ecd (diff)
Merge branch 'log-api-conn-errors' into 'master'
Log connection attempt errors See merge request gitlab-org/gitlab-pages!456
-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)