mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
main.py: Route traceback after logging init
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user