From 95cd7fdcb5e578257816c38a4d35cddb99a96f71 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 1 Feb 2024 18:41:45 -0500 Subject: [PATCH] fix(bible): adding debugging code --- bible/bible.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bible/bible.py b/bible/bible.py index e1a1c9d..43db59a 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -57,6 +57,8 @@ class Bible(commands.Cog): headers = await self.bot.get_shared_api_tokens("api.bible") async with self.session.get(url, headers=headers) as response: data = await response.json() + self.logger.debug(bible_id) + self.logger.debug(json.dumps(data)) return data["data"] async def _get_chapters(self, bible_id: str, book_id: str) -> dict: @@ -65,6 +67,8 @@ class Bible(commands.Cog): headers = await self.bot.get_shared_api_tokens("api.bible") async with self.session.get(url, headers=headers) as response: data = await response.json() + self.logger.debug(book_id) + self.logger.debug(json.dumps(data)) return data["data"] async def _get_verses(self, bible_id: str, book_id: str, chapter: int) -> dict: @@ -73,6 +77,8 @@ class Bible(commands.Cog): headers = await self.bot.get_shared_api_tokens("api.bible") async with self.session.get(url, headers=headers) as response: data = await response.json() + self.logger.debug(chapter) + self.logger.debug(json.dumps(data)) return data["data"] @commands.group(autohelp=True)