From ffb4e0ee378949c33c1a3e8be293f3479172caeb Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 25 Jan 2023 14:59:24 +0200 Subject: [PATCH] change to log in info --- find_duplicate_files/find_duplicate_files.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/find_duplicate_files/find_duplicate_files.py b/find_duplicate_files/find_duplicate_files.py index 047366e..49db942 100644 --- a/find_duplicate_files/find_duplicate_files.py +++ b/find_duplicate_files/find_duplicate_files.py @@ -37,10 +37,10 @@ class find_duplicate_files: count = 0 for hash in first_files: count += 1 - print(f"# Checking file {count} of {total}") + self._log.info(f"# Checking file {count} of {total}") if hash in second_files: - print(f"#File '{first_files[hash]}' is dupe with '{second_files[hash]}'.") - print(f"rm '{first_files[hash]}'") + self._log.info(f"#File '{first_files[hash]}' is dupe with '{second_files[hash]}'.") + self._log.info(f"rm '{first_files[hash]}'") def recursive_scandir(self, path, ignore_hidden_files=True): ''' Recursively scan a directory for files'''