mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 05:26:36 +00:00
log to console as well
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user