From ccdeeb14beb39066e0f0accf9c4e0a28702affc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Wed, 13 Mar 2024 09:44:34 +0000 Subject: [PATCH] Remove debug logging and optimize file removal in Job class --- src/common/utils/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/jobs.py b/src/common/utils/jobs.py index 20b986b6b..df7db0edb 100644 --- a/src/common/utils/jobs.py +++ b/src/common/utils/jobs.py @@ -85,7 +85,6 @@ class Job: if not manual: for file in self.job_path.glob("**/*"): - self.logger.debug(f"file : {file}") skipped = False for ignored_dir in ignored_dirs: if file.as_posix().startswith(ignored_dir.as_posix()): @@ -95,6 +94,7 @@ class Job: if skipped: continue + self.logger.debug(f"Checking if {file} should be removed") if file not in plugin_cache_files and file.is_file(): self.logger.debug(f"Removing non-cached file {file}") file.unlink(missing_ok=True)