1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
George Claghorn ffc8475db8
Fix setting a more verbose thread-local log level
We prepend a check against the thread-local level to Logger#add, but because it proceeds to check against the thread-global level, only setting a quieter thread-local level works. The quietest of the two wins. Fix by reimplementing #add entirely.

It's unfortunate to have to do this, but I've already patched upstream Logger to prefer the level instance method over the @level instance variable, so we'll be able to avoid touching #add at all in the future. See https://github.com/ruby/logger/pull/41.
2019-09-13 13:54:18 -04:00
..
active_support Fix setting a more verbose thread-local log level 2019-09-13 13:54:18 -04:00
active_support.rb Autoload the AS::SecureCompareRotator class: 2019-09-05 13:13:09 +02:00