From 6352cdcddae0a34395c21dbc1286f433e1840ea9 Mon Sep 17 00:00:00 2001 From: Alex Bezdieniezhnykh Date: Thu, 22 May 2025 17:17:55 +0300 Subject: [PATCH] log to console as well --- annotation-queue/annotation_queue_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/annotation-queue/annotation_queue_handler.py b/annotation-queue/annotation_queue_handler.py index ef2a8fe..248dd39 100644 --- a/annotation-queue/annotation_queue_handler.py +++ b/annotation-queue/annotation_queue_handler.py @@ -1,5 +1,7 @@ import os import shutil +import sys + import yaml import asyncio from rstream import Consumer, AMQPMessage, ConsumerOffsetSpecification, OffsetType, MessageContext @@ -24,6 +26,7 @@ handler = TimedRotatingFileHandler( formatter = logging.Formatter('%(asctime)s|%(message)s', "%H:%M:%S") handler.setFormatter(formatter) logger.addHandler(handler) +logger.addHandler(logging.StreamHandler(sys.stdout)) class AnnotationQueueHandler: