From f2d7e51da27f0ae29a8d190640d6dd899e2bcc8b Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 3 Oct 2007 23:56:34 +0000 Subject: Explicitly convert the buffer array to a string before writing to head off compatibility issues with outputs that don't fully quack like an IO. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/buffered_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index fad47b0e9b..08e71e5b8c 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -91,7 +91,7 @@ module ActiveSupport end def flush - @log.write(@buffer.slice!(0..-1)) unless @buffer.empty? + @log.write(@buffer.slice!(0..-1).to_s) unless @buffer.empty? end def close -- cgit v1.2.3