From ccb87e2f6984d64bc463bfd75ec78dac75a8a98c Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 28 Sep 2007 14:09:35 +0000 Subject: BufferedLogger#add converts the message to a string. Closes #9724. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/buffered_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index a3715e2e84..9b840091a5 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -51,7 +51,7 @@ module ActiveSupport def add(severity, message = nil, progname = nil, &block) return if @level > severity - message = message || (block && block.call) || progname + message = (message || (block && block.call) || progname).to_s # If a newline is necessary then create a new message ending with a newline. # Ensures that the original message is not mutated. message = "#{message}\n" unless message[-1] == ?\n -- cgit v1.2.3