From 40e525b3550907afa0145d0fabb19aa9792347d7 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 24 四月 2024 16:18:47 +0800 Subject: [PATCH] L2添加耗时日志 --- utils/data_export_util.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/data_export_util.py b/utils/data_export_util.py index e17422d..90fca46 100644 --- a/utils/data_export_util.py +++ b/utils/data_export_util.py @@ -43,15 +43,15 @@ datas = local_today_datas.get(code) if not datas: datas = [] - logger_debug.info("鍔犺浇L2閫愮瑪濮旀墭鑰楁椂", f"{(time.time() - __start_time)}") + logger_debug.info("鍔犺浇L2閫愮瑪濮旀墭鑰楁椂锛歿}", f"{(time.time() - __start_time)}") __start_time = time.time() process_indexs = log_export.get_l2_process_position(code, date) - logger_debug.info("鍔犺浇L2閫愮瑪濮旀墭鎵规鑰楁椂", f"{(time.time() - __start_time)}") + logger_debug.info("鍔犺浇L2閫愮瑪濮旀墭鎵规鑰楁椂锛歿}", f"{(time.time() - __start_time)}") __start_time = time.time() trade_indexs = log_export.get_l2_trade_position(code, date) real_position_indexes = log_export.get_real_place_order_positions(code, date) deal_list = log_export.load_huaxin_deal_record(code, date) - logger_debug.info("鍔犺浇鍏朵粬浜ゆ槗鍙傛暟鑰楁椂", f"{(time.time() - __start_time)}") + logger_debug.info("鍔犺浇鍏朵粬浜ゆ槗鍙傛暟鑰楁椂锛歿}", f"{(time.time() - __start_time)}") __start_time = time.time() deal_list_dict = {} for d in deal_list: @@ -61,13 +61,13 @@ sell_nos = sell_no_dict.get(code) active_sell_map = log_export.load_huaxin_active_sell_map(date=date) active_sell_set = active_sell_map.get(code) - logger_debug.info("鍔犺浇鍗栧崟鑰楁椂", f"{(time.time() - __start_time)}") + logger_debug.info("鍔犺浇鍗栧崟鑰楁椂锛歿}", f"{(time.time() - __start_time)}") __start_time = time.time() if not active_sell_set: active_sell_set = set() fdatas = export_l2_data(code, datas, process_indexs, trade_indexs, real_position_indexes, deal_list_dict, sell_nos, active_sell_set) - logger_debug.info("缁勮鏁版嵁鑰楁椂", f"{(time.time() - __start_time)}") + logger_debug.info("缁勮鏁版嵁鑰楁椂锛歿}", f"{(time.time() - __start_time)}") __start_time = time.time() return fdatas -- Gitblit v1.8.0