Skip to content

Commit

Permalink
Explicitly convert the buffer array to a string before writing to hea…
Browse files Browse the repository at this point in the history
…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 f2d7e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/buffered_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2d7e51

Please sign in to comment.