logging_handler: Resolve exception logging

This commit is contained in:
Mykola Grymalyuk
2023-05-22 10:58:49 -06:00
parent 1f23ceef7f
commit 422eee04b7
3 changed files with 25 additions and 11 deletions

View File

@@ -27,11 +27,9 @@ class OpenCoreLegacyPatcher:
"""
def __init__(self) -> None:
logging_handler.InitializeLoggingSupport()
self.constants: constants.Constants = constants.Constants()
self.constants.wxpython_variant: bool = True
logging_handler.InitializeLoggingSupport(self.constants)
logging.info(f"- Loading OpenCore Legacy Patcher v{self.constants.patcher_version}...")
@@ -46,6 +44,8 @@ class OpenCoreLegacyPatcher:
Generate base data required for the patcher to run
"""
self.constants.wxpython_variant: bool = True
# Generate OS data
os_data = os_probe.OSProbe()
self.constants.detected_os = os_data.detect_kernel_major()