Support crash logging in CLI code

This commit is contained in:
Mykola Grymalyuk
2023-05-30 15:42:17 -06:00
parent 47be068aaf
commit 831495923a
4 changed files with 9 additions and 1 deletions
+1
View File
@@ -213,6 +213,7 @@ class InitializeLoggingSupport:
self._display_debug_properties()
if self.constants.cli_mode is True:
threading.Thread(target=analytics_handler.Analytics(self.constants).send_crash_report, args=(self.log_filepath,)).start()
return
error_msg = f"OpenCore Legacy Patcher encountered the following internal error:\n\n"