aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-11-26 14:09:02 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-11-26 14:09:02 +0400
commited815a1cabde59edbea734ed7e10a15bf9a845ff (patch)
tree81435a3ea29448b460f53318b072e3ced96103a7
parentMerge pull request #2335 from python-discord/help-system-timeout (diff)
Simplify Help Thread Warning Log
The current warning log includes the thread name, which means the log message varies wildly between threads. This causes issues with sentry since the actual error message gets trimmed, and sentry fails to group issues from this log as they appear as different messages. Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--bot/exts/help_channels/_channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_channel.py b/bot/exts/help_channels/_channel.py
index cc3d831b0..d4a742000 100644
--- a/bot/exts/help_channels/_channel.py
+++ b/bot/exts/help_channels/_channel.py
@@ -80,7 +80,7 @@ async def send_opened_post_dm(thread: discord.Thread) -> None:
try:
message = await thread.fetch_message(thread.id)
except discord.HTTPException:
- log.warning(f"Could not fetch message for thread {thread.name} ({thread.id})")
+ log.warning(f"Could not fetch message for thread {thread.id}")
return
formatted_message = textwrap.shorten(message.content, width=100, placeholder="...")