Skip to content

Commit

Permalink
changes to support multiple threads in jruby--fixes github issue data…
Browse files Browse the repository at this point in the history
toddtomkinson committed Jul 27, 2012
1 parent 03f14bc commit 4329a90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dm-core/support/logger.rb
Original file line number Diff line number Diff line change
@@ -124,7 +124,9 @@ def set_log(log, log_level = nil, delimiter = " ~ ", auto_flush = false)
# Flush the entire buffer to the log object.
def flush
return unless @buffer.size > 0
@log.write(@buffer.slice!(0..-1).join)
to_flush = @buffer
@buffer = []
@log.write(to_flush.join)
end

# Close and remove the current log object.

0 comments on commit 4329a90

Please sign in to comment.