mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 09:16:36 +00:00
log to console as well
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
import asyncio
|
import asyncio
|
||||||
from rstream import Consumer, AMQPMessage, ConsumerOffsetSpecification, OffsetType, MessageContext
|
from rstream import Consumer, AMQPMessage, ConsumerOffsetSpecification, OffsetType, MessageContext
|
||||||
@@ -24,6 +26,7 @@ handler = TimedRotatingFileHandler(
|
|||||||
formatter = logging.Formatter('%(asctime)s|%(message)s', "%H:%M:%S")
|
formatter = logging.Formatter('%(asctime)s|%(message)s', "%H:%M:%S")
|
||||||
handler.setFormatter(formatter)
|
handler.setFormatter(formatter)
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
|
logger.addHandler(logging.StreamHandler(sys.stdout))
|
||||||
|
|
||||||
|
|
||||||
class AnnotationQueueHandler:
|
class AnnotationQueueHandler:
|
||||||
|
|||||||
Reference in New Issue
Block a user