diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-18 09:09:05 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-18 09:09:05 +0200 |
commit | e44cb39663ad672c80aafa3615dd0d61148c2077 (patch) | |
tree | 51bf939c44a735fe9aad005f1f9c880a396bbc73 /activesupport | |
parent | d4c8068675f0b6be025590471b40ff175daa845e (diff) | |
parent | ee35b79d4cff24b960be54c3f5c4f46627c069fe (diff) | |
download | rails-e44cb39663ad672c80aafa3615dd0d61148c2077.tar.gz rails-e44cb39663ad672c80aafa3615dd0d61148c2077.tar.bz2 rails-e44cb39663ad672c80aafa3615dd0d61148c2077.zip |
Merge pull request #16099 from tgxworld/pass_log_as_block
Prefer to pass block when logging.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/testing/tagged_logging.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/tagged_logging.rb b/activesupport/lib/active_support/testing/tagged_logging.rb index f4cee64091..843ce4a867 100644 --- a/activesupport/lib/active_support/testing/tagged_logging.rb +++ b/activesupport/lib/active_support/testing/tagged_logging.rb @@ -6,7 +6,7 @@ module ActiveSupport attr_writer :tagged_logger def before_setup - if tagged_logger + if tagged_logger && tagged_logger.info? heading = "#{self.class}: #{name}" divider = '-' * heading.size tagged_logger.info divider |