mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
main.py: Route traceback after logging init
This commit is contained in:
+2
-2
@@ -37,8 +37,6 @@ class OpenCoreLegacyPatcher:
|
|||||||
# Likely in an installer environment, store in /Users/Shared
|
# Likely in an installer environment, store in /Users/Shared
|
||||||
LOG_FILEPATH = Path("/Users/Shared") / LOG_FILENAME
|
LOG_FILEPATH = Path("/Users/Shared") / LOG_FILENAME
|
||||||
|
|
||||||
self.implement_custom_traceback_handler()
|
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.NOTSET,
|
level=logging.NOTSET,
|
||||||
format="%(asctime)s - %(filename)s (%(lineno)d): %(message)s",
|
format="%(asctime)s - %(filename)s (%(lineno)d): %(message)s",
|
||||||
@@ -51,6 +49,8 @@ class OpenCoreLegacyPatcher:
|
|||||||
logging.getLogger().setLevel(logging.INFO)
|
logging.getLogger().setLevel(logging.INFO)
|
||||||
logging.getLogger().handlers[1].maxBytes = 1024 * 1024 * 10
|
logging.getLogger().handlers[1].maxBytes = 1024 * 1024 * 10
|
||||||
|
|
||||||
|
self.implement_custom_traceback_handler()
|
||||||
|
|
||||||
|
|
||||||
def implement_custom_traceback_handler(self):
|
def implement_custom_traceback_handler(self):
|
||||||
# TODO: Support thread exceptions
|
# TODO: Support thread exceptions
|
||||||
|
|||||||
Reference in New Issue
Block a user