aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-05-10 20:10:17 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-05-10 20:10:17 +0300
commitd9ff75759cfd3728ba95c89c5aa2dbeae4b1f339 (patch)
treea55a4282bd099c56b47a763ab28a815b97f621d8
parentFixes Function Signature Formatting (diff)
Fixes Logging Statement
Changes logging statement levels and messages to correctly express intent. Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--bot/exts/moderation/silence.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/moderation/silence.py b/bot/exts/moderation/silence.py
index a3174bc5d..b2b781673 100644
--- a/bot/exts/moderation/silence.py
+++ b/bot/exts/moderation/silence.py
@@ -274,7 +274,7 @@ class Silence(commands.Cog):
guild.default_role: PermissionOverwrite(speak=False, connect=False, view_channel=False)
}
afk_channel = await guild.create_voice_channel("mute-temp", overwrites=overwrites)
- log.info(f"Failed to get afk-channel, created temporary channel #{afk_channel} ({afk_channel.id})")
+ log.info(f"Failed to get afk-channel, created #{afk_channel} ({afk_channel.id})")
return afk_channel
@@ -290,7 +290,7 @@ class Silence(commands.Cog):
try:
await member.move_to(None, reason="Kicking member from voice channel.")
- log.debug(f"Kicked {member.name} from voice channel.")
+ log.trace(f"Kicked {member.name} from voice channel.")
except Exception as e:
log.debug(f"Failed to move {member.name}. Reason: {e}")
continue
@@ -316,10 +316,10 @@ class Silence(commands.Cog):
try:
await member.move_to(afk_channel, reason="Muting VC member.")
- log.debug(f"Moved {member.name} to afk channel.")
+ log.trace(f"Moved {member.name} to afk channel.")
await member.move_to(channel, reason="Muting VC member.")
- log.debug(f"Moved {member.name} to original voice channel.")
+ log.trace(f"Moved {member.name} to original voice channel.")
except Exception as e:
log.debug(f"Failed to move {member.name}. Reason: {e}")
continue