Commit 20cc9959 authored by Allvey's avatar Allvey

Merge branch 'master' of github.com:Allvey/integrated-scheduling

# Conflicts: # realtime_dispatch.py # settings.py # static_data_process.py # tables.py # traffic_flow_planner.py
parent 02bc7591
/TFLog/ /TFLog/
/logs/ /RDlogs/
/venv/ /venv/
...@@ -16,7 +16,7 @@ import logging.handlers ...@@ -16,7 +16,7 @@ import logging.handlers
######################################################################################################################## ########################################################################################################################
# 日志存储地址 # 日志存储地址
log_path = '/usr/local/fleet-log/dispatch' log_path = '/usr/local/fleet-log/dispatch'
# log_path = '/root/WatoDisp/logs' # log_path = '/root/WatoDisp/RDlogs'
# # 创建日志目录 # # 创建日志目录
# if not os.path.exists(log_path): # if not os.path.exists(log_path):
...@@ -30,7 +30,7 @@ logger.setLevel(logging.INFO) ...@@ -30,7 +30,7 @@ logger.setLevel(logging.INFO)
# timefilehandler = logging.handlers.TimedRotatingFileHandler(log_path + "/dispatch.log", when='M', interval=1, backupCount=60) # timefilehandler = logging.handlers.TimedRotatingFileHandler(log_path + "/dispatch.log", when='M', interval=1, backupCount=60)
# filehandler = logging.handlers.RotatingFileHandler(log_path + "/dispatch.log", maxBytes=3*1024*1024, backupCount=10) # filehandler = logging.handlers.RotatingFileHandler(log_path + "/dispatch.log", maxBytes=3*1024*1024, backupCount=10)
filehandler = logging.handlers.RotatingFileHandler("logs/dispatch.log", maxBytes=3 * 1024 * 1024, backupCount=10) filehandler = logging.handlers.RotatingFileHandler("RDlogs/dispatch.log", maxBytes=3 * 1024 * 1024, backupCount=10)
# 设置后缀名称,跟strftime的格式一样 # 设置后缀名称,跟strftime的格式一样
filehandler.suffix = "%Y-%m-%d_%H-%M.log" filehandler.suffix = "%Y-%m-%d_%H-%M.log"
......
...@@ -90,7 +90,7 @@ logging.basicConfig() ...@@ -90,7 +90,7 @@ logging.basicConfig()
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)
timefilehandler = logging.handlers.TimedRotatingFileHandler("logs/dispatch.log", when='M', interval=1, backupCount=60) timefilehandler = logging.handlers.TimedRotatingFileHandler("RDlogs/dispatch.log", when='M', interval=1, backupCount=60)
# 设置后缀名称,跟strftime的格式一样 # 设置后缀名称,跟strftime的格式一样
timefilehandler.suffix = "%Y-%m-%d_%H-%M.log" timefilehandler.suffix = "%Y-%m-%d_%H-%M.log"
......
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