lib/instrumental/agent.rb in instrumental_agent-0.8.2 vs lib/instrumental/agent.rb in instrumental_agent-0.8.3
- old
+ new
@@ -205,10 +205,10 @@
@socket = nil
@queue = Queue.new
start_connection_worker
end
- cmd = "%s %s\n" % [cmd, args.collect(&:to_s).join(" ")]
+ cmd = "%s %s\n" % [cmd, args.collect { |v| v.to_s }.join(" ")]
if @queue.size < MAX_BUFFER
logger.debug "Queueing: #{cmd.chomp}"
@main_thread = Thread.current if @synchronous
@queue << cmd
Thread.stop if @synchronous