Handle Background Worker's exceptions #30
Labels
Backend
good first issue
Good for newcomers
help wanted
Extra attention is needed
maintenance
Improvement tasks
Summary
In case the background worker encounters and error, it should output it into its log instead of closing.
Alternatively the log file name could be appended with
-failed.log
to better recognize this scenario.A general try/catch could work. Alternatively we can hook into the UnhandledException event of the runtime to be a bit more sure.
The exception should also be printed in the log itself.
Notes
Careful about exceptions that are coming from failed attempt at logging.
Want to work on this issue?
❤️ Amazing! Let us know in the comments bellow so that we can assign this issue to you. 🎉
No stress, though, feel free to ask for help with any clarifications or problems you may encounter along the way. We're here to help.
The text was updated successfully, but these errors were encountered: