diff --git a/bot.py b/bot.py index f4f4a20..7169730 100644 --- a/bot.py +++ b/bot.py @@ -56,12 +56,13 @@ def process_event(event, template): async def send_message(text): async with aiohttp.ClientSession() as session: - await session.post(config.WEBHOOK_URL, json={ + result = await session.post(config.WEBHOOK_URL, json={ "text": text, "format": "html", "displayName": "PUBLIC INFORMATION STREAMS & SERVICES", "avatarUrl": config.AVATAR_URL }) + logging.debug(f"RECV: [{result.status}] {await result.text()}") async def main():