mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
logging_handler.py: Avoid file size check if missing
This commit is contained in:
@@ -41,6 +41,9 @@ class InitializeLoggingSupport:
|
||||
We check if we're near the max file size, and if so, we clean the log file
|
||||
"""
|
||||
|
||||
if not self.log_filepath.exists():
|
||||
return
|
||||
|
||||
if self.log_filepath.stat().st_size < self.file_size_redline:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user