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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-06-06 12:39:38 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-06-06 12:39:38 +0300
commit536d180f80839ad8350e26e435a181e3cbf2253b (patch)
treeb62008fd718030ce8f612f136a2c6d065d77c35b
parent9f71d02e46668a0344123749bb6a0a7764e69b68 (diff)
Rescue from failed feature lookups
-rw-r--r--lib/gitlab/gitaly_client.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb
index 5756b9ef0d5..36e9adf27da 100644
--- a/lib/gitlab/gitaly_client.rb
+++ b/lib/gitlab/gitaly_client.rb
@@ -253,6 +253,10 @@ module Gitlab
else
false
end
+ rescue => ex
+ # During application startup feature lookups in SQL can fail
+ Rails.logger.warn "exception while checking Gitaly feature status for #{feature_name}: #{ex}"
+ false
end
# opt_into_all_features? returns true when the current environment