From 10e13725adc67f746e6b27c1f170b65c1ab2fd40 Mon Sep 17 00:00:00 2001 From: zjf Date: Tue, 27 May 2025 18:33:39 +0800 Subject: [PATCH] rpa --- src/cluster/rpa.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cluster/rpa.py b/src/cluster/rpa.py index 4880949..cb29601 100644 --- a/src/cluster/rpa.py +++ b/src/cluster/rpa.py @@ -105,17 +105,17 @@ async def check_live_status(webcast_id: str, page: Optional[Page] = None) -> boo # 监听网络响应 async def handle_response(response): if "live.douyin.com/live/promotions/page" in response.url: - print(f"URL: {response.url}") - print(f"Status: {response.status}") + logger.debug(f"URL: {response.url}") + logger.debug(f"Status: {response.status}") # 获取响应内容 try: json_data = await response.json() - print("json_data:",json.dumps(json_data, indent=2, ensure_ascii=False)) - print("top_promotion:",json_data["top_promotion"]) - print("promotions:",json_data["promotions"]) - print("total:",json_data["total"]) + logger.debug(f"json_data:{json.dumps(json_data, indent=2, ensure_ascii=False)}") + logger.debug(f'top_promotion:{json_data["top_promotion"]}') + logger.debug(f'promotions:{json_data["promotions"]}') + logger.debug(f'total:{json_data["total"]}') except: - print("Non-JSON response") + logger.debug("Non-JSON response")