Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(scheduled-tasks): add error listeners #499

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

killbasa
Copy link
Contributor

@killbasa killbasa commented Nov 7, 2023

This PR adds default error listeners to the scheduled-tasks plugin. They are not enabled by default.

Currently if a connection error is thrown in the ScheduledTaskHandler constructor, it gets emitted to a listener instead of showing in stderr. So if there if no listener for that event an error will never be shown, which is not fun for debugging.

Reference: https://discord.com/channels/737141877803057244/737142940777971773/1170749988918272063

@favna favna merged commit ccbe75e into sapphiredev:main Nov 10, 2023
7 checks passed
@killbasa killbasa deleted the error-listeners branch November 11, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants