From 90100c26611216ac9b1c64c4ed54a8b5a20df5c9 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Thu, 17 May 2018 10:12:48 -0700 Subject: [PATCH] Conditionally add Gitaly deprecation warnings based on ENV variable --- config/initializers/deprecations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {