logging_handler.py: Avoid file size check if missing

This commit is contained in:
Mykola Grymalyuk
2023-02-05 09:58:00 -07:00
parent f915199b92
commit bece5d4b3b
+3
View File
@@ -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