avoid pre-formatting log messages

This commit is contained in:
2023-11-20 20:43:55 +00:00
parent e648a45aa9
commit 2ff9b47983
9 changed files with 29 additions and 27 deletions

View File

@@ -70,7 +70,7 @@ def create_thumbs(folder_path):
continue
image_path = os.path.join(file_path, f)
logger.info(f"Edit picture '{f}'.")
logger.info("Edit picture '%s'.", f)
with Image.open(str(image_path), "r") as image:
if image._getexif() is not None:
@@ -78,4 +78,4 @@ def create_thumbs(folder_path):
thumb = ImageOps.fit(image, size, Image.ANTIALIAS)
thumb.save(thumb_file_path)
logger.info(f"Save thumb 'thumb_{f}'.")
logger.info("Save thumb 'thumb_%s'.", f)