diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-05-14 15:08:51 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-05-14 15:08:51 +0200 |
commit | aad2e06f4851f9236881897bf987950b772dd99a (patch) | |
tree | 54a8421caa882d4b146da6de0049b00d18bb673f /config | |
parent | 40683268b2b5ad807194387d8345a30195e178c4 (diff) | |
download | gitlab-ce-aad2e06f4851f9236881897bf987950b772dd99a.tar.gz |
More verbose logging for deprecated path access
Current logging tells us we've isolated the calls to about 5 call sites,
now we'd like to know what is calling these methods.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/deprecations.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/initializers/deprecations.rb b/config/initializers/deprecations.rb index 2476ea9e38a..c8d7f742bb1 100644 --- a/config/initializers/deprecations.rb +++ b/config/initializers/deprecations.rb @@ -1,5 +1,9 @@ -deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab') - if Gitlab.dev_env_or_com? + deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab') + + deprecator.behavior = -> (message, callstack) { + Rails.logger.warn("#{message}: #{callstack[1..20].join}") + } + ActiveSupport::Deprecation.deprecate_methods(Gitlab::GitalyClient::StorageSettings, :legacy_disk_path, deprecator: deprecator) end |