Rescue from failed feature lookups

This commit is contained in:
Jacob Vosmaer 2018-06-06 11:39:38 +02:00
parent 9f71d02e46
commit 536d180f80
1 changed files with 4 additions and 0 deletions

View File

@ -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