Commit c6e92e60 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'zj-verbose-logging-deprecation-stack' into 'master'

More verbose logging for deprecated path access

See merge request gitlab-org/gitlab-ce!18943
parents f805546f aad2e06f
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment