diff options
author | 2022-11-26 14:09:02 +0400 | |
---|---|---|
committer | 2022-11-26 14:09:02 +0400 | |
commit | ed815a1cabde59edbea734ed7e10a15bf9a845ff (patch) | |
tree | 81435a3ea29448b460f53318b072e3ced96103a7 | |
parent | Merge 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.py | 2 |
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="...") |