Remove loggers

pull/915/head
Rick Carlino 2018-07-18 14:48:27 -05:00
parent b81b85c44b
commit 497003457d
2 changed files with 2 additions and 4 deletions

View File

@ -2,8 +2,7 @@ module Resources
class Service
def self.process(delivery_info, body)
params = PreProcessor.from_amqp(delivery_info, body)
puts "<="
puts params
puts params if Rails.env.production?
result = Job.run!(params)
payl = result ? result.to_json : ""
chan = ["from_api", (params[:uuid] || "NONE")].join(".")

View File

@ -58,8 +58,7 @@ class Transport
def amqp_send(message, id, channel)
raise "BAD `id`" unless id.is_a?(String) || id.is_a?(Integer)
routing_key = "bot.device_#{id}.#{channel}"
puts "=> #{routing_key}"
puts message
puts message if Rails.env.production?
amqp_topic.publish(message, routing_key: routing_key)
end