Skip to content
Snippets Groups Projects
Commit eda6a477 authored by Steffen Vogel's avatar Steffen Vogel :santa_tone2:
Browse files

use __str__ to show simulator details

parent ae3b42be
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ class Controller(kombu.mixins.ConsumerMixin): ...@@ -10,7 +10,7 @@ class Controller(kombu.mixins.ConsumerMixin):
self.connection = connection self.connection = connection
for sim in self.simulators: for sim in self.simulators:
LOGGER.info("Adding %s simulator: %s (%s)", sim.type, sim.name, sim.uuid) LOGGER.info('Adding %s', str(sim))
sim.set_connection(connection) sim.set_connection(connection)
def get_consumers(self, Consumer, channel): def get_consumers(self, Consumer, channel):
......
...@@ -196,4 +196,4 @@ class Simulator(object): ...@@ -196,4 +196,4 @@ class Simulator(object):
self.started = time.time() self.started = time.time()
def __str__(self): def __str__(self):
return "Simulator <%s, %s>" % (self.type, self.uuid) return "%sSimulator <%s: %s>" % (self.type, self.name, self.uuid)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment