diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-10 19:26:47 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-07-10 19:26:47 +0000 |
commit | 0ab89d8e36ba58a95244b4c6dd49d53fac7a699f (patch) | |
tree | 40707956c6a5942b6301b18b2e85e5336fa590c3 /config/initializers/deprecations.rb | |
parent | 82503745143faf2b71185c9f392dbfd00d6d587e (diff) | |
download | gitlab-ce-0ab89d8e36ba58a95244b4c6dd49d53fac7a699f.tar.gz |
Add a rubocop for Rails.logger
Suggests to use a JSON structured log instead
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
Diffstat (limited to 'config/initializers/deprecations.rb')
-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 14616e726d9..0d096e34eb7 100644 --- a/config/initializers/deprecations.rb +++ b/config/initializers/deprecations.rb @@ -2,7 +2,7 @@ if Rails.env.development? || ENV['GITLAB_LEGACY_PATH_LOG_MESSAGE'] deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab') deprecator.behavior = -> (message, callstack) { - Rails.logger.warn("#{message}: #{callstack[1..20].join}") + Rails.logger.warn("#{message}: #{callstack[1..20].join}") # rubocop:disable Gitlab/RailsLogger } ActiveSupport::Deprecation.deprecate_methods(Gitlab::GitalyClient::StorageSettings, :legacy_disk_path, deprecator: deprecator) |