logging_handler.py: adjust formatting

This commit is contained in:
Mykola Grymalyuk
2023-02-05 10:35:14 -07:00
parent bece5d4b3b
commit ad9ae96c7f
+4 -3
View File
@@ -8,11 +8,12 @@ class InitializeLoggingSupport:
def __init__(self) -> None: 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.log_filepath: Path = None
self.max_file_size: int = 1024 * 1024 * 10 self.max_file_size: int = 1024 * 1024 * 10 # 10 MB
self.file_size_redline: int = 1024 * 1024 * 9 # When to start cleaning log file self.file_size_redline: int = 1024 * 1024 * 9 # 9 MB, when to start cleaning log file
self._initialize_logging_path() self._initialize_logging_path()
self._clean_log_file() self._clean_log_file()