From d96c980598f3307cce0b5980a86a9f01f7548c4b Mon Sep 17 00:00:00 2001 From: William Jackson <565174+williamjacksn@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:52:07 -0600 Subject: [PATCH] On Rainwave API errors, log text instead of json --- wormgas/cogs/rainwave.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wormgas/cogs/rainwave.py b/wormgas/cogs/rainwave.py index 3ad3d3e..f060fab 100644 --- a/wormgas/cogs/rainwave.py +++ b/wormgas/cogs/rainwave.py @@ -74,8 +74,8 @@ async def _call(self, path: str, params: dict = None): log.debug(f'{response.status} {content}') if response.status == 200: return await response.json() - log.critical(f'Response status is {response.status}') - log.critical(await response.json()) + log.critical(f'Response status for {url} is {response.status}') + log.critical(await response.text()) raise RuntimeError @staticmethod