From 1e62f24748cd9dea0dde3afa10bd83576c24350b Mon Sep 17 00:00:00 2001 From: kiriharu Date: Fri, 8 Jan 2021 20:28:46 +0300 Subject: [PATCH] fix #15 --- apps/tgbot/tgbot/handlers/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tgbot/tgbot/handlers/helpers.py b/apps/tgbot/tgbot/handlers/helpers.py index 2f77810..58c0797 100644 --- a/apps/tgbot/tgbot/handlers/helpers.py +++ b/apps/tgbot/tgbot/handlers/helpers.py @@ -62,7 +62,7 @@ async def send_api_request(client: AsyncClient, endpoint: str, data: dict, node: f"{node.address}/{endpoint}", params=data ) except Exception as e: - logger.error(f"Node {node.address} got Error. Full exception: {e}") + logger.error(f"Node {node.address} got Error. Data: {data}. Endpoint: {endpoint}. Full exception: {e}") result = Response(500) await send_message_to_admins(f"Node {node.address} got error {e}. Full exception: ```{format_exc()}```") await push_api_request_status(