2021-02-03 16:09:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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) {
|
2020-09-09 08:08:22 -04:00
|
|
|
Gitlab::AppLogger.warn("#{message}: #{callstack[1..20].join}")
|
2018-05-14 09:08:51 -04:00
|
|
|
}
|
|
|
|
|
2018-04-12 03:12:21 -04:00
|
|
|
ActiveSupport::Deprecation.deprecate_methods(Gitlab::GitalyClient::StorageSettings, :legacy_disk_path, deprecator: deprecator)
|
|
|
|
end
|