feat: GUI 抛异常时打点日志

This commit is contained in:
zzyyyl
2022-10-01 18:38:30 +08:00
parent 727941d060
commit d5fcfa3a29

View File

@@ -114,6 +114,7 @@ namespace MeoAsstGui
protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e)
{
// 抛异常了,可以打些日志
File.AppendAllText("gui.err.log", DateTime.Now.ToString() + ' ' + e.Exception.ToString());
}
}
}