提交 f2d7e51d 编写于 作者: J Jeremy Kemper

Explicitly convert the buffer array to a string before writing to head off...

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
上级 d9dac76f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册