diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-11-13 22:50:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-13 22:50:30 -0500 |
commit | f1c5b0bd0a6211286bfbb8f46991de325d45a2e5 (patch) | |
tree | fbc35fc36d87268e998f4638c35e81180f622d14 /activesupport | |
parent | 2a8426c0f6f7a106ff2e6a7cec0851477e5b1c55 (diff) | |
parent | 89fab56597c335bb49887563b9a98386b5171574 (diff) | |
download | rails-f1c5b0bd0a6211286bfbb8f46991de325d45a2e5.tar.gz rails-f1c5b0bd0a6211286bfbb8f46991de325d45a2e5.tar.bz2 rails-f1c5b0bd0a6211286bfbb8f46991de325d45a2e5.zip |
Merge pull request #26222 from vipulnsward/26134-fix
Format and send logs to logger.fatal from DebugExceptions
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/tagged_logging.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/tagged_logging.rb b/activesupport/lib/active_support/tagged_logging.rb index 6836378943..ad134c49b6 100644 --- a/activesupport/lib/active_support/tagged_logging.rb +++ b/activesupport/lib/active_support/tagged_logging.rb @@ -48,13 +48,12 @@ module ActiveSupport Thread.current[thread_key] ||= [] end - private - def tags_text - tags = current_tags - if tags.any? - tags.collect { |tag| "[#{tag}] " }.join - end + def tags_text + tags = current_tags + if tags.any? + tags.collect { |tag| "[#{tag}] " }.join end + end end def self.new(logger) |