Remove deprecated LoggerSilence constant

This commit is contained in:
Rafael Mendonça França 2020-10-28 21:10:24 +00:00
parent 4bd56f4428
commit 8d1ade40dd
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
4 changed files with 6 additions and 21 deletions

@ -1,3 +1,7 @@
* Remove deprecated `LoggerSilence` constant.
*Rafael Mendonça França*
* Remove deprecated fallback to `I18n.default_local` when `config.i18n.fallbacks` is empty.
*Rafael Mendonça França*

@ -4,19 +4,6 @@
require "active_support/core_ext/module/attribute_accessors"
require "active_support/logger_thread_safe_level"
module LoggerSilence
extend ActiveSupport::Concern
included do
ActiveSupport::Deprecation.warn(
"Including LoggerSilence is deprecated and will be removed in Rails 6.1. " \
"Please use `ActiveSupport::LoggerSilence` instead"
)
include ActiveSupport::LoggerSilence
end
end
module ActiveSupport
module LoggerSilence
extend ActiveSupport::Concern

@ -114,14 +114,6 @@ class BroadcastLoggerTest < TestCase
assert_equal [[::Logger::FATAL, "seen", nil]], log2.adds
end
test "Including top constant LoggerSilence is deprecated" do
assert_deprecated("Please use `ActiveSupport::LoggerSilence`") do
Class.new(CustomLogger) do
include ::LoggerSilence
end
end
end
class CustomLogger
include ActiveSupport::LoggerSilence

@ -286,6 +286,8 @@ Please refer to the [Changelog][active-support] for detailed changes.
* Remove deprecated fallback to `I18n.default_local` when `config.i18n.fallbacks` is empty.
* Remove deprecated `LoggerSilence` constant.
### Deprecations
### Notable changes