Better error handling
Toshimichi0915 opened this issue ยท 0 comments
Why?
Currently DiscordSRV cannot handle a large text, and the most important part of stacktrace is omitted because of this. Also, DiscordSRV spams console when a plugin throws an error every tick, making DiscordSRV practically unusable.
What and How?
My suggestion is to separate normal server-console and error-log channel. In error-log channel, an error that was thrown before will not be shown. This is done by calculating hash of every stacktrace. Large stacktrace should be supported as well.
Are there alternatives?
It must be possible to implement that, because I have made the plugin to do that 4 years ago.
https://github.com/Toshimichi0915/Nakuru2
If you are too lazy to implement this feature, I will.
Checks
- I have used the search at least once to check if my idea has already been suggested and perhaps already implemented.
Anything else
This feature is useful for developers like me and makes it easier to detect/fix errors.