This commit is contained in:
kiriharu 2021-01-08 20:28:46 +03:00
parent 3cabd5e732
commit 1e62f24748

View File

@ -62,7 +62,7 @@ async def send_api_request(client: AsyncClient, endpoint: str, data: dict, node:
f"{node.address}/{endpoint}", params=data f"{node.address}/{endpoint}", params=data
) )
except Exception as e: 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) result = Response(500)
await send_message_to_admins(f"Node {node.address} got error {e}. Full exception: ```{format_exc()}```") await send_message_to_admins(f"Node {node.address} got error {e}. Full exception: ```{format_exc()}```")
await push_api_request_status( await push_api_request_status(