diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-05-17 18:53:06 +0000 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-05-17 18:53:06 +0000 |
commit | 399996ca2e5e475df297c1ba7890cc6a8c2d63c5 (patch) | |
tree | e9ed68d21f359c1c5b3707618f976bf0aee7503c | |
parent | 4609a1268de9f15c02899c906cbb9ce27c495ab3 (diff) | |
parent | 90100c26611216ac9b1c64c4ed54a8b5a20df5c9 (diff) | |
download | gitlab-ce-399996ca2e5e475df297c1ba7890cc6a8c2d63c5.tar.gz |
Merge branch 'sh-remove-deprecation-warnings-from-com' into 'master'
Conditionally enable deprecation log messages
Closes #46158 and gitlab-com/infrastructure#4228
See merge request gitlab-org/gitlab-ce!18997
-rw-r--r-- | config/initializers/deprecations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/deprecations.rb b/config/initializers/deprecations.rb index c8d7f742bb1..14616e726d9 100644 --- a/config/initializers/deprecations.rb +++ b/config/initializers/deprecations.rb @@ -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) { |