From 9ac765c32f39bb34cf2cd378e6ca7c1428e91b41 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期四, 09 五月 2024 14:26:43 +0800 Subject: [PATCH] 可转债订阅修改 --- log_module/log.py | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/log_module/log.py b/log_module/log.py index a67c721..c0e8214 100644 --- a/log_module/log.py +++ b/log_module/log.py @@ -274,8 +274,6 @@ filter=lambda record: record["extra"].get("name") == "local_huaxin_l2_market", rotation="00:00", compression="zip", enqueue=True) - - logger.add(self.get_local_huaxin_path("contact", "debug"), filter=lambda record: record["extra"].get("name") == "local_huaxin_debug", rotation="00:00", compression="zip", enqueue=True) @@ -306,20 +304,20 @@ rotation="00:00", compression="zip", enqueue=True) def get_path(self, dir_name, log_name): - path_str = "{}/sell_logs/gp/{}/{}".format(constant.get_path_prefix(), dir_name, - log_name) + ".{time:YYYY-MM-DD}.log" + path_str = "{}/{}/gp/{}/{}".format(constant.get_path_prefix(), constant.LOG_DIR, dir_name, + log_name) + ".{time:YYYY-MM-DD}.log" # print(path_str) return path_str def get_hx_path(self, dir_name, log_name): - path_str = "{}/sell_logs/huaxin/{}/{}".format(constant.get_path_prefix(), dir_name, - log_name) + ".{time:YYYY-MM-DD}.log" + path_str = "{}/{}/huaxin/{}/{}".format(constant.get_path_prefix(), constant.LOG_DIR, dir_name, + log_name) + ".{time:YYYY-MM-DD}.log" # print(path_str) return path_str def get_local_huaxin_path(self, dir_name, log_name): - path_str = "{}/sell_logs/huaxin_local/{}/{}".format(constant.get_path_prefix(), dir_name, - log_name) + ".{time:YYYY-MM-DD}.log" + path_str = "{}/{}/huaxin_local/{}/{}".format(constant.get_path_prefix(), constant.LOG_DIR, dir_name, + log_name) + ".{time:YYYY-MM-DD}.log" # print(path_str) return path_str -- Gitblit v1.8.0