Commit 709f85b1 authored by ibuler's avatar ibuler

[Update] 修改日志存储

parent 56d23da6
......@@ -6,7 +6,7 @@ WORKDIR /opt/coco
RUN yum -y install epel-release
RUN cd requirements && yum -y install $(cat rpm_requirements.txt)
RUN cd requirements && pip install $(egrep "jumpserver|jms" requirements.txt | tr '\n' ' ') && pip install -r requirements.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple
RUN cd requirements && pip install -r requirements.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple || pip install -r requirements.txt
ENV LANG=zh_CN.UTF-8
ENV LC_ALL=zh_CN.UTF-8
......
......@@ -45,12 +45,11 @@ def create_logger():
},
'file': {
'level': 'DEBUG',
'class': 'logging.handlers.TimedRotatingFileHandler',
'class': 'logging.handlers.RotatingFileHandler',
'formatter': 'main',
'filename': log_path,
'when': "D",
'interval': 1,
"backupCount": 7
'maxBytes': 1024*1024*100,
'backupCount': 7,
},
},
loggers={
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment