From b9698fe21326fb7ac918de44413cd267f906bf38 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 6 Jun 2022 21:44:33 -0400 Subject: [PATCH] Include guild name in channel permissions messages --- ahtcg_bot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ahtcg_bot.py b/ahtcg_bot.py index cc2753a..c3d8693 100755 --- a/ahtcg_bot.py +++ b/ahtcg_bot.py @@ -109,11 +109,13 @@ class ArkhamDBUpdater(discord.Client): ) ^ expected_permissions if missing_permissions.value: logging.warning( - f"channel: '{channel}' missing permissions: {missing_permissions}" + f"channel: {channel.guild} - {channel.name} missing permissions: {missing_permissions}" ) else: - logging.info(f"channel '{channel}' permissions OK") - logging.debug(f"channel '{channel}' permissions: {dict(permissions)}") + logging.info(f"channel {channel.guild} - {channel.name} permissions OK") + logging.debug( + f"channel {channel.guild} - {channel.name} permissions: {dict(permissions)}" + ) await self.setup_commands()