Commit db048c63 authored by ibuler's avatar ibuler

[Update] 修改日志名字

parent 87dea073
...@@ -12,7 +12,7 @@ from .conf import config as app_config ...@@ -12,7 +12,7 @@ from .conf import config as app_config
def create_logger(): def create_logger():
level = app_config['LOG_LEVEL'] level = app_config['LOG_LEVEL']
log_dir = app_config['LOG_DIR'] log_dir = app_config['LOG_DIR']
filename = '{}.log'.format(socket.gethostname()) filename = 'coco-{}.log'.format(socket.gethostname())
if not os.path.isdir(log_dir): if not os.path.isdir(log_dir):
os.makedirs(log_dir) os.makedirs(log_dir)
log_path = os.path.join(log_dir, filename) log_path = os.path.join(log_dir, filename)
......
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