debug playhead and database

This commit is contained in:
deflax 2025-02-08 03:59:21 +02:00
parent 35e0757096
commit ffc5680445

View file

@ -128,6 +128,7 @@ async def query_playhead():
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client:
response = await client.get(head_url) response = await client.get(head_url)
playhead = response.json() playhead = response.json()
logger_discord.info(f'Playhead at {playhead['head']}')
except Exception as e: except Exception as e:
logger_discord.error('Cannot connect to the playhead!') logger_discord.error('Cannot connect to the playhead!')
logger_discord.error(e) logger_discord.error(e)
@ -141,6 +142,7 @@ async def query_database():
async with httpx.AsyncClient() as client: async with httpx.AsyncClient() as client:
response = await client.get(db_url) response = await client.get(db_url)
database = response.json() database = response.json()
logger_discord.info(f'Database items {database.keys()}')
except Exception as e: except Exception as e:
logger_discord.error('Cannot connect to the database!') logger_discord.error('Cannot connect to the database!')
logger_discord.error(e) logger_discord.error(e)