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