RED-4564: Print full exception with traceback when processing from the queue

This commit is contained in:
Viktor Seifert 2022-07-08 14:32:05 +02:00
parent 4f18dbc60d
commit 12ebd186b2

View File

@ -40,6 +40,8 @@ def make_callback(analysis_endpoint):
def main():
logger = logging.getLogger("main")
show_banner()
webserver = Process(target=run_probing_webserver, args=(set_up_probing_webserver(),))
@ -58,6 +60,7 @@ def main():
consumer = Consumer(visitor, queue_manager)
consumer.basic_consume_and_publish()
except Exception as err:
logger.exception(err)
raise ConsumerError from err
try: