lib/logging/appenders/string_io.rb in logging-2.2.2 vs lib/logging/appenders/string_io.rb in logging-2.3.0

- old
+ new

@@ -60,10 +60,10 @@ alias_method :reset, :clear %w[read readline readlines].each do|m| class_eval <<-CODE, __FILE__, __LINE__+1 def #{m}( *args ) - sync { + @mutex.synchronize { begin @sio.seek @pos rv = @sio.#{m}(*args) @pos = @sio.tell rv