Skip to content

Improve Discord gateway error handling and logging#761

Merged
teknium1 merged 1 commit intoNousResearch:mainfrom
aydnOktay:feature/improve-discord-error-logging
Mar 11, 2026
Merged

Improve Discord gateway error handling and logging#761
teknium1 merged 1 commit intoNousResearch:mainfrom
aydnOktay:feature/improve-discord-error-logging

Conversation

@aydnOktay
Copy link
Copy Markdown
Contributor

PR improves error handling and logging in the Discord gateway adapter to make operational issues much easier to debug. It replaces bare print statements with structured logging calls and adds detailed logger.error / logger.warning messages (with exc_info=True) around connection failures, timeouts, message send/edit errors, rich media send fallbacks, and channel metadata lookups, while preserving the existing SendResult contract and behavior. With these changes, failures that previously only surfaced as generic error strings or silent fallbacks now emit clear, context-rich log lines that help operators quickly understand what went wrong in Discord integrations

@teknium1 teknium1 merged commit 4b619c9 into NousResearch:main Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants