Commit 709f85b1 authored by ibuler's avatar ibuler

[Update] 修改日志存储

parent 56d23da6
...@@ -6,7 +6,7 @@ WORKDIR /opt/coco ...@@ -6,7 +6,7 @@ WORKDIR /opt/coco
RUN yum -y install epel-release RUN yum -y install epel-release
RUN cd requirements && yum -y install $(cat rpm_requirements.txt) 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 LANG=zh_CN.UTF-8
ENV LC_ALL=zh_CN.UTF-8 ENV LC_ALL=zh_CN.UTF-8
......
...@@ -45,12 +45,11 @@ def create_logger(): ...@@ -45,12 +45,11 @@ def create_logger():
}, },
'file': { 'file': {
'level': 'DEBUG', 'level': 'DEBUG',
'class': 'logging.handlers.TimedRotatingFileHandler', 'class': 'logging.handlers.RotatingFileHandler',
'formatter': 'main', 'formatter': 'main',
'filename': log_path, 'filename': log_path,
'when': "D", 'maxBytes': 1024*1024*100,
'interval': 1, 'backupCount': 7,
"backupCount": 7
}, },
}, },
loggers={ 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