control-net/vr-retreat

Handle Background Worker's exceptions

オープン

#30 opened on 2021/12/29

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1 件のフォーク)auto 404
Backendgood first issuehelp wantedmaintenance

Repository metrics

Stars
 (6 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド