Add debug log for polling

This commit is contained in:
s3lph 2022-01-16 20:25:51 +01:00
parent 1f58c4b15f
commit b79a6b9494
Signed by: s3lph
GPG key ID: 8AC98A811E5BEFF5

View file

@ -123,6 +123,7 @@ class SpaceapiBot(Plugin):
async with aiohttp.ClientSession(read_timeout=15, conn_timeout=5) as http: async with aiohttp.ClientSession(read_timeout=15, conn_timeout=5) as http:
while True: while True:
await asyncio.sleep(self.config['poll'].get('interval', 60)) await asyncio.sleep(self.config['poll'].get('interval', 60))
self.log.debug('Polling SpaceAPI endpoint')
try: try:
state, changed = await self.update_spaceapi_status(http) state, changed = await self.update_spaceapi_status(http)
if changed: if changed: