diff --git a/lib/vmdb/loggers/io_logger.rb b/lib/vmdb/loggers/io_logger.rb index 321f937bbad..64bc7461723 100644 --- a/lib/vmdb/loggers/io_logger.rb +++ b/lib/vmdb/loggers/io_logger.rb @@ -7,10 +7,12 @@ def initialize(logger, level = :info, prefix = nil) super() end - def write(string) - @buffer ||= "" - @buffer << string - dump_buffer if string.include?("\n") + def write(*args) + args.each do |arg| + @buffer ||= "" + @buffer << arg + dump_buffer if arg.include?("\n") + end end def <<(string)