Add log JSON formatter
This commit is contained in:
parent
4750d1c5ef
commit
3c99928a27
27 changed files with 402 additions and 41 deletions
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import logging
|
||||
import features
|
||||
import time
|
||||
|
@ -6,6 +7,7 @@ from app import app, storage, image_replication_queue
|
|||
from data.database import CloseForLongOperation
|
||||
from data import model
|
||||
from workers.queueworker import QueueWorker, WorkerUnhealthyException
|
||||
from util.log import logfile_path
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -78,7 +80,7 @@ class StorageReplicationWorker(QueueWorker):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
logging.config.fileConfig('conf/logging.conf', disable_existing_loggers=False)
|
||||
logging.config.fileConfig(logfile_path(debug=False), disable_existing_loggers=False)
|
||||
|
||||
has_local_storage = False
|
||||
|
||||
|
|
Reference in a new issue