0ab89d8e36
Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
9 lines
419 B
Ruby
9 lines
419 B
Ruby
if Rails.env.development? || ENV['GITLAB_LEGACY_PATH_LOG_MESSAGE']
|
|
deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab')
|
|
|
|
deprecator.behavior = -> (message, callstack) {
|
|
Rails.logger.warn("#{message}: #{callstack[1..20].join}") # rubocop:disable Gitlab/RailsLogger
|
|
}
|
|
|
|
ActiveSupport::Deprecation.deprecate_methods(Gitlab::GitalyClient::StorageSettings, :legacy_disk_path, deprecator: deprecator)
|
|
end
|