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/active_support
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
..
cache These options are not defined as keyword arguments 2019-09-05 19:03:02 +09:00
concurrency Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
core_ext nil.try accepts keyword arguments (and does nothing with them) 2019-09-09 22:48:22 +09:00
dependencies Improves compatibility of require_dependency in zeitwerk mode [Closes #36774] 2019-07-28 14:09:01 +02:00
deprecation Fix Class#new + keyword arguments warnings 2019-09-09 01:02:39 +09:00
duration Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
inflector Constantize a constant array in a method 2019-08-29 07:54:51 +09:00
json Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
locale :number is not a keyword argument 2019-09-03 17:48:40 +09:00
log_subscriber [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
messages Fix Class#new + keyword arguments warnings 2019-09-09 01:02:39 +09:00
multibyte Prefer normal method call over method_missing 2019-09-03 10:26:15 +09:00
notifications Don't use Process#clock_gettime(CLOCK_PROCESS_CPUTIME_ID) on Solaris 2019-09-04 10:15:39 +01:00
number_helper Do not enforce no braces for hash argument 2019-09-04 08:49:36 +09:00
testing Revert "You give jruby_skip & rubinius_skip a good name" 2019-08-02 00:24:11 -04:00
values Add AS::TimeZone#match? 2019-07-29 14:17:36 +09:00
xml_mini Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
actionable_error.rb Refactor after the most recent code review 2019-04-19 14:15:41 +09:00
all.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
array_inquirer.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
backtrace_cleaner.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
benchmarkable.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
builder.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
cache.rb Separate keyword arguments from parameters 2019-09-13 16:21:32 +09:00
callbacks.rb active_support/deprecation is not in use here 2019-07-12 18:34:07 +09:00
concern.rb Add documentations to AS::Concern#included and #class_methods 2019-04-17 18:41:53 +09:00
configurable.rb Change wording of some instances of 'opt out' [ci skip] 2019-03-12 20:06:02 +05:30
core_ext.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
current_attributes.rb activesupport: Memoize name object allocation in CurrentAttributes.instance 2019-08-19 13:05:56 -04:00
dependencies.rb Performance improvement for String#to 2019-07-28 17:16:03 +09:00
deprecation.rb Start Rails 6.1 development 2019-04-24 15:57:14 -04:00
descendants_tracker.rb Optimize DescendantsArray insertions 2019-07-25 11:37:39 -04:00
digest.rb Don't include ellipsis in truncated digest output 2017-12-17 00:49:02 +00:00
duration.rb Disallow all non-numerics as Duration.build input, Fixes #37012 2019-08-27 16:58:09 +01:00
encrypted_configuration.rb Bugfix: ActiveSupport::EncryptedConfiguration reading of comment-only encrypted files (#34014) 2018-10-05 08:06:33 +09:00
encrypted_file.rb Fix Class#new + keyword arguments warnings 2019-09-09 01:02:39 +09:00
evented_file_update_checker.rb Fix folders update watcher with no folders to watch (#36163) 2019-09-09 13:50:01 +02:00
execution_wrapper.rb Missing require "concurrent/hash" 2018-10-20 14:58:04 +09:00
executor.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
file_update_checker.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
gem_version.rb Start Rails 6.1 development 2019-04-24 15:57:14 -04:00
gzip.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
hash_with_indifferent_access.rb Merge pull request #36880 from freeletics/multiple-merge 2019-08-08 18:27:57 -04:00
i18n.rb ActiveSupport::Inflector#ordinal and ActiveSupport::Inflector#ordinalize 2018-03-05 08:41:49 -05:00
i18n_railtie.rb Describe how to silence the deprecation warning about empty I18n fallbacks 2019-01-25 10:57:20 +01:00
inflections.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
inflector.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
json.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
key_generator.rb Remove secret_token rack env and cookie upgrade code 2019-01-17 16:08:34 -05:00
lazy_load_hooks.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
log_subscriber.rb Specify log subscribers need a logger set before they can receive events 2019-07-15 11:36:31 -04:00
logger.rb Accessing ivar with Symbols might be just a very little bit better than with fstrings 2019-07-31 12:18:44 +09:00
logger_silence.rb Fix the LoggerSilence to work as described: 2018-10-02 17:17:23 -04:00
logger_thread_safe_level.rb Fix setting a more verbose thread-local log level 2019-09-13 13:54:18 -04:00
message_encryptor.rb Passing in a Hash instance as kwargs parameters requires the "double splat" prefix 2019-09-03 17:48:34 +09:00
message_verifier.rb Unify the API with Messages::Rotator::Verifier#verify that takes kwargs 2019-09-03 17:48:40 +09:00
multibyte.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
notifications.rb Fix subscribed with no pattern to subscribe all messages 2019-06-03 05:47:10 +09:00
number_helper.rb active_support/dependencies/autoload is already required via active_support.rb 2019-07-12 18:30:58 +09:00
option_merger.rb No need to dup before double-splatting a Hash 2019-09-13 20:20:28 +09:00
ordered_hash.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
ordered_options.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
parameter_filter.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
per_thread_registry.rb Accessing ivar with Symbols might be just a very little bit better than with fstrings 2019-07-31 12:18:44 +09:00
proxy_object.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
rails.rb active_support/dependencies/autoload is already required via active_support.rb 2019-07-12 18:30:58 +09:00
railtie.rb Use SHA-1 for non-sensitive digests by default 2018-01-08 20:45:46 +00:00
reloader.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
rescuable.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
secure_compare_rotator.rb Performance improvement for String#to 2019-07-28 17:16:03 +09:00
security_utils.rb Don't encode in secure_compare for speedup 2019-03-26 21:43:52 -04:00
string_inquirer.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
subscriber.rb No need to stringify event names (= method names) that always are Symbols 2019-08-30 03:04:52 +09:00
tagged_logging.rb Reduce object allocations in TaggedLogging 2019-08-19 00:08:04 +09:00
test_case.rb Revert "MethodCallAssertions is a regular player of the team ActiveSupport::TestCase now" 2019-08-02 00:24:21 -04:00
time.rb [Active Support] require_relative => require 2017-10-21 22:48:27 +09:00
time_with_zone.rb Add Style/RedundantFreeze to remove redudant .freeze 2018-09-29 07:18:44 +00:00
version.rb [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
xml_mini.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00