mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove deprecated LoggerSilence
constant
This commit is contained in:
parent
4bd56f4428
commit
8d1ade40dd
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/concern"
|
|||
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 @@ module ActiveSupport
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue