From 65eaa7b6cb89395c9ea738b6c0ec571cd7bc1235 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 19 Dec 2023 11:33:49 +0300 Subject: [PATCH] less-logs --- services/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core.py b/services/core.py index 1fadc98..77b7153 100644 --- a/services/core.py +++ b/services/core.py @@ -12,7 +12,7 @@ authors_by_id = {} async def _request_endpoint(query_name, body) -> Any: async with ClientSession() as session: async with session.post(API_BASE, headers=headers, json=body) as response: - print(f"[services.core] {query_name} response: <{response.status}> {await response.text()}") + print(f"[services.core] {query_name} response: <{response.status}> {(await response.text())[:15]}..") if response.status == 200: r = await response.json() if r: