From a7a394e1525cfb85aff1ba02f0961dbb07748bc8 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 10 二月 2023 19:06:09 +0800
Subject: [PATCH] 日志优化,部分大单并行化处理

---
 l2/l2_data_log.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/l2/l2_data_log.py b/l2/l2_data_log.py
index 4a0745e..1da78cf 100644
--- a/l2/l2_data_log.py
+++ b/l2/l2_data_log.py
@@ -2,13 +2,14 @@
 import time
 
 import log
+from l2 import l2_log
 
 
-def l2_time(code, do_id, time_, description, new_line=False, force=False):
+def l2_time(code, time_, description, new_line=False, force=False):
     timestamp = int(time.time() * 1000)
     # 鍙褰曡�楁椂杈冮暱鐨勪俊鎭�
     if time_ > 1 or force:
-        log.logger_l2_process_time.info("{}-{} {}: {}-{}{}", do_id, timestamp, description, code, time_,
+        log.logger_l2_process_time.info("{}-{} {}: {}-{}{}", l2_log.threadIds.get(code), timestamp, description, code, time_,
                                         "\n" if new_line else "")
     return timestamp
 

--
Gitblit v1.8.0