Commit a83dbaee authored by Federico Sismondi's avatar Federico Sismondi

cleaner logs

parent 74f73ffa
...@@ -85,17 +85,19 @@ class BaseConsumer(ConsumerMixin): ...@@ -85,17 +85,19 @@ class BaseConsumer(ConsumerMixin):
def on_consume_ready(self, connection, channel, consumers, wakeup=True, **kwargs): def on_consume_ready(self, connection, channel, consumers, wakeup=True, **kwargs):
# control plane info # control plane info
self.log.info( self.log.info(
"{consumer_name} listening to control plane. " "{consumer_name} listening to control plane ".format(consumer_name=self.consumer_name))
"Queue (consumer): control.{consumer_name}@{name} . " self.log.info(
"Topic (binding): control.{consumer_name}.toAgent.{name}" "Queue: control.{consumer_name}@{name} ".format(consumer_name=self.consumer_name, name=self.name))
.format(consumer_name=self.consumer_name, name=self.name)) self.log.info(
"Topic: control.{consumer_name}.toAgent.{name}".format(consumer_name=self.consumer_name, name=self.name))
# data plane info # data plane info
self.log.info( self.log.info(
"{consumer_name} listening to data plane. " "{consumer_name} listening to data plane".format(consumer_name=self.consumer_name))
"Queue (consumer): data.{consumer_name}@{name} . " self.log.info(
"Topic (binding): data.{consumer_name}.toAgent.{name}" "Queue: data.{consumer_name}@{name}".format(consumer_name=self.consumer_name, name=self.name))
.format(consumer_name=self.consumer_name, name=self.name)) self.log.info(
"Topic: data.{consumer_name}.toAgent.{name}".format(consumer_name=self.consumer_name, name=self.name))
def handle_control(self, body, message): def handle_control(self, body, message):
self.log.debug("DEFAULT HANDLE CONTROL") self.log.debug("DEFAULT HANDLE CONTROL")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment