From 0e68e24f54db11d340785b17570fff2bc5fc7ac6 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期一, 24 七月 2023 13:05:16 +0800 Subject: [PATCH] bug修复 --- l2/l2_data_log.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/l2/l2_data_log.py b/l2/l2_data_log.py index 4a0745e..240dd07 100644 --- a/l2/l2_data_log.py +++ b/l2/l2_data_log.py @@ -1,14 +1,15 @@ # l2鏁版嵁鐨勬棩蹇� import time -import log +from log_module 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