I’m building an error-escalation system, in order to do so I will need to prioritize errors that are being thrown “organically” or so to speak, not errors made by users (as in error(_)).
I want all errors that break scripts completely to be critical, so this does not include errors thrown from events/threads.
How would you go around doing this?
I thought making some wrappers for certain scripts / sanity checks (though the latter don’t seem to be efficient, or maybe IDK how to make them efficient?).
Would really appreciate your thoughts on this.
Thanks in advance!!
EDIT: If it’s not clear: the motivation is to create a mailing system for critical errors so not to rush to the logs on weekends/fix issues at minimum time.