From 9b2ca188bb84998f089a03f3e5fa46a7a439399f Mon Sep 17 00:00:00 2001
From: admin <admin@example.com>
Date: 星期一, 18 八月 2025 10:39:42 +0800
Subject: [PATCH] 增加日志

---
 strategy/local_data_management.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/strategy/local_data_management.py b/strategy/local_data_management.py
index 4f61081..3d8fb8c 100644
--- a/strategy/local_data_management.py
+++ b/strategy/local_data_management.py
@@ -3,7 +3,7 @@
 
 import constant
 from strategy import data_cache
-from log_module.log import logger_common
+from log_module.log import logger_common, logger_debug
 from utils import tool
 
 
@@ -42,9 +42,12 @@
 
     def __load_data(self):
         if os.path.exists(self.stock_path):
+
             with open(self.stock_path, 'r', encoding='utf-8') as f:
                 self.all_stocks_all_K_line_property_dict = json.load(f)
+                logger_debug.info(f"鍘嗗彶K绾挎暟鎹暟閲忥紙{self.stock_path}锛夛細{len(self.all_stocks_all_K_line_property_dict)}")
         else:
+            logger_debug.info(f"鍘嗗彶K绾挎暟鎹笉瀛樺湪锛歿self.stock_path}")
             self.all_stocks_all_K_line_property_dict.clear()
 
         if os.path.exists(self.index_path):

--
Gitblit v1.8.0