Demote log to debug

This commit is contained in:
Sebastian Spaeth 2022-11-08 18:51:59 +01:00
parent f96b05f245
commit a00ffc258f

View File

@ -44,7 +44,7 @@ class File:
if self.fullpath is None:
logging.info(f"No known path for file id '{self.media_id}', cannot delete file.")
elif not self.fullpath.is_dir():
logging.info(f"Path for file id '{self.media_id}' exists but is not directory, ignoring instead of deleting.")
logging.debug(f"Path for file id '{self.media_id}' is not a directory or does not exist, not deleting.")
else:
for file in self.fullpath.glob('*'):
# note: this does not handle directories in fullpath