avoid pre-formatting log messages
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user