Remove loggers
parent
b81b85c44b
commit
497003457d
|
@ -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(".")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue