summaryrefslogtreecommitdiff
path: root/config/initializers/deprecations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/deprecations.rb')
-rw-r--r--config/initializers/deprecations.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/initializers/deprecations.rb b/config/initializers/deprecations.rb
index 14616e726d9..937f7d57eca 100644
--- a/config/initializers/deprecations.rb
+++ b/config/initializers/deprecations.rb
@@ -1,7 +1,7 @@
-if Rails.env.development? || ENV['GITLAB_LEGACY_PATH_LOG_MESSAGE']
- deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab')
+if Rails.env.development? || ENV["GITLAB_LEGACY_PATH_LOG_MESSAGE"]
+ deprecator = ActiveSupport::Deprecation.new("11.0", "GitLab")
- deprecator.behavior = -> (message, callstack) {
+ deprecator.behavior = ->(message, callstack) {
Rails.logger.warn("#{message}: #{callstack[1..20].join}")
}