2018-05-17 13:12:48 -04:00
|
|
|
if Rails.env.development? || ENV['GITLAB_LEGACY_PATH_LOG_MESSAGE']
|
2018-05-14 09:08:51 -04:00
|
|
|
deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab')
|
|
|
|
|
|
|
|
deprecator.behavior = -> (message, callstack) {
|
|
|
|
Rails.logger.warn("#{message}: #{callstack[1..20].join}")
|
|
|
|
}
|
|
|
|
|
2018-04-12 03:12:21 -04:00
|
|
|
ActiveSupport::Deprecation.deprecate_methods(Gitlab::GitalyClient::StorageSettings, :legacy_disk_path, deprecator: deprecator)
|
|
|
|
end
|