control-net/vr-retreat

Handle Background Worker's exceptions

开放

#30 创建于 2021年12月29日

 (0 条评论) (0 个反应) (0 位负责人)C# (1 个派生)auto 404
Backendgood first issuehelp wantedmaintenance

仓库指标

星标
 (6 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南