From 9d655c667cb40ba64e3f6fe5400c9e8c139e9988 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 23 八月 2023 14:51:55 +0800
Subject: [PATCH] 添加异步日志

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

diff --git a/l2/l2_data_manager_new.py b/l2/l2_data_manager_new.py
index 807c442..c694aa4 100644
--- a/l2/l2_data_manager_new.py
+++ b/l2/l2_data_manager_new.py
@@ -7,6 +7,7 @@
 import constant
 from db.redis_manager_delegate import RedisUtils
 from l2.huaxin import l2_huaxin_util, huaxin_delegate_postion_manager
+from log_module import async_log_util
 from third_data import kpl_data_manager, block_info
 from trade.deal_big_money_manager import DealComputeProgressManager
 from utils import global_util, ths_industry_util, tool
@@ -1210,8 +1211,8 @@
                     buy_nums += int(_val["num"]) * int(total_datas[i]["re"])
                     buy_count += int(total_datas[i]["re"])
                     if buy_nums >= threshold_num and buy_count >= threshold_count:
-                        logger_l2_trade_buy.info(
-                            f"{code}鑾峰彇鍒颁拱鍏ユ墽琛岀偣锛歿i} 缁熻绾拱鎵嬫暟锛歿buy_nums} 鐩爣绾拱鎵嬫暟锛歿threshold_num} 缁熻绾拱鍗曟暟锛歿buy_count} 鐩爣绾拱鍗曟暟锛歿threshold_count}, 澶у崟鏁伴噺锛歿len(max_buy_num_set)}")
+                        async_log_util.info(logger_l2_trade_buy,
+                                            f"{code}鑾峰彇鍒颁拱鍏ユ墽琛岀偣锛歿i} 缁熻绾拱鎵嬫暟锛歿buy_nums} 鐩爣绾拱鎵嬫暟锛歿threshold_num} 缁熻绾拱鍗曟暟锛歿buy_count} 鐩爣绾拱鍗曟暟锛歿threshold_count}, 澶у崟鏁伴噺锛歿len(max_buy_num_set)}")
             elif L2DataUtil.is_limit_up_price_buy_cancel(_val):
                 if _val["num"] >= bigger_num:
                     # 鍙粺璁�59涓囦互涓婄殑閲戦

--
Gitblit v1.8.0