aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/logger_silence.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-10-03 16:45:53 -0400
committerGitHub <noreply@github.com>2018-10-03 16:45:53 -0400
commitebf98df9fb705738ece08e3182d41e6f604be491 (patch)
treeb9bf196968abd893ebba3a01eb55a406a32a8d88 /activesupport/lib/active_support/logger_silence.rb
parentf0e9a8987329bb848b712044942160a3a3468343 (diff)
parent05ad44eb89047ac13e31149fa6cbc1459c5545a9 (diff)
downloadrails-ebf98df9fb705738ece08e3182d41e6f604be491.tar.gz
rails-ebf98df9fb705738ece08e3182d41e6f604be491.tar.bz2
rails-ebf98df9fb705738ece08e3182d41e6f604be491.zip
Merge pull request #34055 from Edouard-chin/ec-logger-fix
Fix the LoggerSilence to work as described:
Diffstat (limited to 'activesupport/lib/active_support/logger_silence.rb')
-rw-r--r--activesupport/lib/active_support/logger_silence.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/logger_silence.rb b/activesupport/lib/active_support/logger_silence.rb
index 2f62cc13b9..b2444c1e34 100644
--- a/activesupport/lib/active_support/logger_silence.rb
+++ b/activesupport/lib/active_support/logger_silence.rb
@@ -2,6 +2,7 @@
require "active_support/concern"
require "active_support/core_ext/module/attribute_accessors"
+require "active_support/logger_thread_safe_level"
module LoggerSilence
extend ActiveSupport::Concern
@@ -22,6 +23,7 @@ module ActiveSupport
included do
cattr_accessor :silencer, default: true
+ include ActiveSupport::LoggerThreadSafeLevel
end
# Silences the logger for the duration of the block.