Permalink
Browse files

Explicitly convert the buffer array to a string before writing to hea…

…d 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
  • Loading branch information...
jeremy committed Oct 3, 2007
1 parent d9dac76 commit f2d7e51da27f0ae29a8d190640d6dd899e2bcc8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/buffered_logger.rb
@@ -91,7 +91,7 @@ def auto_flushing=(period)
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

0 comments on commit f2d7e51

Please sign in to comment.