From 1252c9489b631905fbce608109260760537b224f Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期日, 05 二月 2023 19:19:34 +0800 Subject: [PATCH] S撤,安全笔数计算优化 --- l2_data_log.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/l2_data_log.py b/l2_data_log.py index c4221a9..b646110 100644 --- a/l2_data_log.py +++ b/l2_data_log.py @@ -4,11 +4,12 @@ import log -def l2_time(code, time_, description, new_line=False): +def l2_time(code, do_id, time_, description, new_line=False,force=False): timestamp = int(time.time() * 1000) # 鍙褰曡�楁椂杈冮暱鐨勪俊鎭� - if time_ > 50: - log.logger_l2_process_time.info("{} {}: {}-{}{}", timestamp, description, code, time_, "\n" if new_line else "") + if time_ > 50 or force: + log.logger_l2_process_time.info("{}-{} {}: {}-{}{}", do_id, timestamp, description, code, time_, + "\n" if new_line else "") return timestamp -- Gitblit v1.8.0