mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-11 16:27:19 +10:00
Disable crash analytics client side
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# OpenCore Legacy Patcher changelog
|
||||
|
||||
## 2.3.0
|
||||
- Disable crash analytics
|
||||
- Disabled server side for years, removing client side
|
||||
|
||||
## 2.2.0
|
||||
- Resolved non-metal accessibility zoom on macOS Sonoma/Sequoia
|
||||
- Resolved non-metal photos app on macOS Sequoia
|
||||
|
||||
@@ -13,7 +13,7 @@ from .detections import device_probe
|
||||
class Constants:
|
||||
def __init__(self) -> None:
|
||||
# Patcher Versioning
|
||||
self.patcher_version: str = "2.2.0" # OpenCore-Legacy-Patcher
|
||||
self.patcher_version: str = "2.3.0" # OpenCore-Legacy-Patcher
|
||||
self.patcher_support_pkg_version: str = "1.9.1" # PatcherSupportPkg
|
||||
self.copyright_date: str = "Copyright © 2020-2024 Dortania"
|
||||
self.patcher_name: str = "OpenCore Legacy Patcher"
|
||||
|
||||
@@ -200,7 +200,6 @@ class InitializeLoggingSupport:
|
||||
return
|
||||
|
||||
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"
|
||||
@@ -208,17 +207,7 @@ class InitializeLoggingSupport:
|
||||
if tb:
|
||||
error_msg += f"\n\n{traceback.extract_tb(tb)[-1]}"
|
||||
|
||||
cant_log: bool = global_settings.GlobalEnviromentSettings().read_property("DisableCrashAndAnalyticsReporting")
|
||||
if not isinstance(cant_log, bool):
|
||||
cant_log = False
|
||||
|
||||
if self.constants.commit_info[0].startswith("refs/tags"):
|
||||
cant_log = True
|
||||
|
||||
if cant_log is True:
|
||||
error_msg += "\n\nReveal log file?"
|
||||
else:
|
||||
error_msg += "\n\nSend crash report to Dortania?"
|
||||
error_msg += "\n\nReveal log file?"
|
||||
|
||||
# Ask user if they want to send crash report
|
||||
try:
|
||||
@@ -230,11 +219,7 @@ class InitializeLoggingSupport:
|
||||
if result[applescript.AEType(b'bhit')] != "Yes":
|
||||
return
|
||||
|
||||
if cant_log is True:
|
||||
subprocess.run(["/usr/bin/open", "--reveal", self.log_filepath])
|
||||
return
|
||||
|
||||
threading.Thread(target=analytics_handler.Analytics(self.constants).send_crash_report, args=(self.log_filepath,)).start()
|
||||
subprocess.run(["/usr/bin/open", "--reveal", self.log_filepath])
|
||||
|
||||
|
||||
def custom_thread_excepthook(args) -> None:
|
||||
|
||||
Reference in New Issue
Block a user