mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
logging_handler.py: adjust formatting
This commit is contained in:
@@ -8,11 +8,12 @@ class InitializeLoggingSupport:
|
||||
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.log_filename: str = f"OpenCore-Patcher.log"
|
||||
self.log_filename: str = "OpenCore-Patcher.log"
|
||||
|
||||
self.log_filepath: Path = None
|
||||
|
||||
self.max_file_size: int = 1024 * 1024 * 10
|
||||
self.file_size_redline: int = 1024 * 1024 * 9 # When to start cleaning log file
|
||||
self.max_file_size: int = 1024 * 1024 * 10 # 10 MB
|
||||
self.file_size_redline: int = 1024 * 1024 * 9 # 9 MB, when to start cleaning log file
|
||||
|
||||
self._initialize_logging_path()
|
||||
self._clean_log_file()
|
||||
@@ -95,4 +96,4 @@ class InitializeLoggingSupport:
|
||||
logging.error("Uncaught exception in spawned thread", exc_info=(args))
|
||||
|
||||
sys.excepthook = custom_excepthook
|
||||
threading.excepthook = custom_thread_excepthook
|
||||
threading.excepthook = custom_thread_excepthook
|
||||
|
||||
Reference in New Issue
Block a user