Set logging level for Image module to info

This commit is contained in:
2025-07-16 22:53:07 +02:00
parent 8939fe5776
commit 7b78368eb0

View File

@@ -13,6 +13,8 @@ gallery_thumb_path_url = Path(settings.MEDIA_URL) / settings.GALLERY["thumb_path
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
size = (320, 320) size = (320, 320)
Image.logger.setLevel(level=logging.INFO)
def get_image_list(folder_name: str) -> list: def get_image_list(folder_name: str) -> list:
image_path = Path(gallery_path) / folder_name image_path = Path(gallery_path) / folder_name