lib/arii/agent.rb in arii-1.0.8 vs lib/arii/agent.rb in arii-1.1

- old
+ new

@@ -78,11 +78,10 @@ rescue Exception => e ARII::Config.log.error(self.class.name) {"Detection error: #{e}"} end begin - puts @checkup if @checkup[:status] == 100 then process @checkup end rescue Exception => e ARII::Config.log.error(self.class.name) {"Process error: #{e}"} @@ -97,15 +96,12 @@ # def process checkup begin checkup[:templates].each do |template| ARII::Config.log.info(self.class.name) {"Delivering to #{template} template."} - puts "checkup: #{checkup}" checkup[:payload].each do |payload| - puts "payload #{payload}" ARII::Config.log.debug(self.class.name) {"Processing #{payload}."} response = RestClient.post "#{ARII::Config.host}postman/deliver/#{template}.js", payload - puts response case response.code when 200 ARII::Config.log.debug(self.class.name) {"Delivered to #{template}."} else ARII::Config.log.warn(self.class.name) {"unable to deliver \"#{payload}\" to \"#{template}\""} \ No newline at end of file