From 91d1a35eac17c9fbaea387191587cd1d860a7931 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 15 八月 2025 18:42:56 +0800 Subject: [PATCH] 接口修改 --- l2/l2_data_log.py | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/l2/l2_data_log.py b/l2/l2_data_log.py index 4a0745e..dc274f8 100644 --- a/l2/l2_data_log.py +++ b/l2/l2_data_log.py @@ -1,18 +1,25 @@ # l2鏁版嵁鐨勬棩蹇� import time -import log +from log_module import log, async_log_util +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_, - "\n" if new_line else "") + async_log_util.info(log.logger_l2_process_time, "{}-{} {}: {}-{}{}", l2_log.threadIds.get(code), timestamp, + description, code, time_, + "\n" if new_line else "") return timestamp +def l2_time_log(code, description): + async_log_util.info(log.logger_l2_process_time, "{}-{}: {}", l2_log.threadIds.get(code), code, + description) + + class TradeLog: def __init__(self, thread_id): -- Gitblit v1.8.0