debug playhead and database
This commit is contained in:
parent
35e0757096
commit
ffc5680445
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue