broker_3.py 313 B

12345678910
  1. def initial_setup(self):
  2. """set up consumer"""
  3. try:
  4. self.create_kafka_consumer()
  5. except Exception as e:
  6. LOGGER.critical(
  7. "Could not create consumer with {0}".format(e), exc_info=e)
  8. LOGGER.critical("Exiting due to inability to create consumer")
  9. sys.exit(0)