mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
logging_handler.py: adjust formatting
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user