logging_handler.py: adjust formatting

This commit is contained in:
Mykola Grymalyuk
2023-02-05 10:35:14 -07:00
parent bece5d4b3b
commit ad9ae96c7f

View File

@@ -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