mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +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
|
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:
|
if self.log_filepath.stat().st_size < self.file_size_redline:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user