main.py: Route traceback after logging init

This commit is contained in:
Mykola Grymalyuk
2023-02-04 16:32:25 -07:00
parent 08710bc47b
commit 43ef3e18ec

View File

@@ -37,8 +37,6 @@ class OpenCoreLegacyPatcher:
# Likely in an installer environment, store in /Users/Shared
LOG_FILEPATH = Path("/Users/Shared") / LOG_FILENAME
self.implement_custom_traceback_handler()
logging.basicConfig(
level=logging.NOTSET,
format="%(asctime)s - %(filename)s (%(lineno)d): %(message)s",
@@ -51,6 +49,8 @@ class OpenCoreLegacyPatcher:
logging.getLogger().setLevel(logging.INFO)
logging.getLogger().handlers[1].maxBytes = 1024 * 1024 * 10
self.implement_custom_traceback_handler()
def implement_custom_traceback_handler(self):
# TODO: Support thread exceptions