Conditionally add Gitaly deprecation warnings based on ENV variable

This commit is contained in:
Stan Hu 2018-05-17 10:12:48 -07:00
parent 357aaafb73
commit 90100c2661

View file

@ -1,4 +1,4 @@
if Gitlab.dev_env_or_com?
if Rails.env.development? || ENV['GITLAB_LEGACY_PATH_LOG_MESSAGE']
deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab')
deprecator.behavior = -> (message, callstack) {