diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-06-06 12:39:38 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-06-06 12:39:38 +0300 |
commit | 536d180f80839ad8350e26e435a181e3cbf2253b (patch) | |
tree | b62008fd718030ce8f612f136a2c6d065d77c35b | |
parent | 9f71d02e46668a0344123749bb6a0a7764e69b68 (diff) |
Rescue from failed feature lookups
-rw-r--r-- | lib/gitlab/gitaly_client.rb | 4 |
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 |