[Update] 修改日志存储

pull/2392/head
ibuler 2019-02-14 16:15:28 +08:00
parent cb1e19d28f
commit 94020a8fbb
2 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@ COPY ./requirements /tmp/requirements
RUN yum -y install epel-release openldap-clients telnet && cd /tmp/requirements && \ RUN yum -y install epel-release openldap-clients telnet && cd /tmp/requirements && \
yum -y install $(cat rpm_requirements.txt) yum -y install $(cat rpm_requirements.txt)
RUN cd /tmp/requirements && pip install -r requirements.txt RUN cd /tmp/requirements && pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -r requirements.txt || pip install -r requirements.txt
COPY . /opt/jumpserver COPY . /opt/jumpserver
RUN echo > config.yml RUN echo > config.yml

View File

@ -218,10 +218,9 @@ LOGGING = {
'file': { 'file': {
'encoding': 'utf8', 'encoding': 'utf8',
'level': 'DEBUG', 'level': 'DEBUG',
'class': 'logging.handlers.TimedRotatingFileHandler', 'class': 'logging.handlers.RotatingFileHandler',
'when': "D", 'maxBytes': 1024*1024*100,
'interval': 1, 'backupCount': 7,
"backupCount": 7,
'formatter': 'main', 'formatter': 'main',
'filename': JUMPSERVER_LOG_FILE, 'filename': JUMPSERVER_LOG_FILE,
}, },