gitlab-org--gitlab-foss/config/initializers/deprecations.rb
Zeger-Jan van de Weg aad2e06f48
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.
2018-05-14 15:08:51 +02:00

9 lines
341 B
Ruby

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