From dff11f5dd0af74009895f2b56e38ca0d438dbcee Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期四, 24 八月 2023 10:35:02 +0800
Subject: [PATCH] 异步日志bug修改

---
 log_module/log.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/log_module/log.py b/log_module/log.py
index cb97df7..9b99e2e 100644
--- a/log_module/log.py
+++ b/log_module/log.py
@@ -233,6 +233,12 @@
                    filter=lambda record: record["extra"].get("name") == "local_huaxin_l1_show_info",
                    rotation="00:00", compression="zip", enqueue=True)
 
+        logger.add(self.get_local_huaxin_path("l2", "g_cancel"),
+                   filter=lambda record: record["extra"].get("name") == "local_huaxin_g_cancel",
+                   rotation="00:00", compression="zip", enqueue=True)
+
+
+
     def get_path(self, dir_name, log_name):
         path_str = "{}/logs/gp/{}/{}".format(constant.get_path_prefix(), dir_name, log_name) + ".{time:YYYY-MM-DD}.log"
         # print(path_str)
@@ -337,6 +343,7 @@
 logger_local_huaxin_contact_debug = __mylogger.get_logger("local_huaxin_debug")
 logger_local_huaxin_trade_debug = __mylogger.get_logger("local_huaxin_trade_debug")
 logger_local_huaxin_l1 = __mylogger.get_logger("local_huaxin_l1_show_info")
+logger_local_huaxin_g_cancel = __mylogger.get_logger("local_huaxin_g_cancel")
 
 
 def close_print():

--
Gitblit v1.8.0