From ffc5680445f0fbbead54dd6c99ba95686665dc42 Mon Sep 17 00:00:00 2001 From: deflax Date: Sat, 8 Feb 2025 03:59:21 +0200 Subject: [PATCH] debug playhead and database --- src/discordbot/discordbot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/discordbot/discordbot.py b/src/discordbot/discordbot.py index 20eee3b..1877afc 100644 --- a/src/discordbot/discordbot.py +++ b/src/discordbot/discordbot.py @@ -127,7 +127,8 @@ async def query_playhead(): try: async with httpx.AsyncClient() as client: response = await client.get(head_url) - playhead = response.json() + playhead = response.json() + logger_discord.info(f'Playhead at {playhead['head']}') except Exception as e: logger_discord.error('Cannot connect to the playhead!') logger_discord.error(e) @@ -141,6 +142,7 @@ async def query_database(): async with httpx.AsyncClient() as client: response = await client.get(db_url) database = response.json() + logger_discord.info(f'Database items {database.keys()}') except Exception as e: logger_discord.error('Cannot connect to the database!') logger_discord.error(e)