Commit 4461465f authored by 孙谷宇's avatar 孙谷宇
Browse files

modify log level

parent 894fdd4e
......@@ -17,7 +17,7 @@ import logging
from logging import handlers
import os
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.DEBUG)
logger.setLevel(level=logging.INFO)
logfile = client_config.logdir + "/client.log"
if os.path.exists(client_config.logdir) is False:
os.mkdir(client_config.logdir)
......@@ -32,7 +32,7 @@ logger.addHandler(handler)
statlogger = logging.getLogger("STAT")
statlogger.setLevel(level=logging.DEBUG)
statlogger.setLevel(level=logging.INFO)
logfile = client_config.logdir + "/stat.log"
# handler = logging.FileHandler(logfile)
handler = logging.handlers.TimedRotatingFileHandler(logfile, 'D', 1, 0) # 切割日志
......
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