debian-mirror-gitlab/config/initializers/deprecations.rb

12 lines
418 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
if Rails.env.development? || ENV['GITLAB_LEGACY_PATH_LOG_MESSAGE']
deprecator = ActiveSupport::Deprecation.new('11.0', 'GitLab')
deprecator.behavior = -> (message, callstack) {
2020-11-24 15:15:51 +05:30
Gitlab::AppLogger.warn("#{message}: #{callstack[1..20].join}")
2018-10-15 14:42:47 +05:30
}
ActiveSupport::Deprecation.deprecate_methods(Gitlab::GitalyClient::StorageSettings, :legacy_disk_path, deprecator: deprecator)
end