lib/asir/transport/beanstalk.rb in asir_beanstalk-1.2.7 vs lib/asir/transport/beanstalk.rb in asir_beanstalk-1.2.8

- old
+ new

@@ -234,12 +234,15 @@ # beanstalk connections are long lived. false end def _start_conduit! + host = conduit_host opt = host ? "-l #{host} " : "" cmd = "beanstalkd #{opt}-p #{port} -z #{1 * 1024 * 1024} #{@conduit_options[:beanstalkd_options]}" - $stderr.puts " #{cmd}" rescue nil if @conduit_options[:verbose] + if @conduit_options[:verbose] + $stderr.puts " #{cmd}" rescue nil + end exec(cmd) end end # !SLIDE END end # class