From b244e58281eb648b020ac6c4c17b070b80752cb8 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 26 十二月 2023 14:05:12 +0800 Subject: [PATCH] 增加日志记录 --- third_data/kpl_data_manager.py | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/third_data/kpl_data_manager.py b/third_data/kpl_data_manager.py index 5b0f2e8..fe2bb34 100644 --- a/third_data/kpl_data_manager.py +++ b/third_data/kpl_data_manager.py @@ -395,7 +395,6 @@ requests.post("http://127.0.0.1:9004/upload_kpl_data", json.dumps(root_data)) def get_limit_up(): - last_time = 0 while True: if tool.is_trade_time(): try: @@ -403,11 +402,6 @@ result = json.loads(results) start_time = time.time() __upload_data("limit_up", result) - if start_time - last_time >= 60: - last_time = time.time() - # 璁板綍娑ㄥ仠鏁版嵁 - logger_kpl_limit_up.info(result) - # logger_kpl_limit_up_reason_change.info("涓婁紶鑰楁椂锛歿}", time.time() - start_time) except Exception as e: logging.exception(e) time.sleep(3) -- Gitblit v1.8.0