Adaption to new logging

This commit is contained in:
Dirk Alders 2021-01-21 19:32:34 +01:00
parent 226c87f918
commit abcf63d02e

View File

@ -28,8 +28,11 @@ import io
import logging
from PIL import Image, ImageEnhance, ExifTags
logger_name = 'MEDIA'
logger = logging.getLogger(logger_name)
try:
from config import APP_NAME as ROOT_LOGGER_NAME
except ImportError:
ROOT_LOGGER_NAME = 'root'
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
__DESCRIPTION__ = """The Module {\\tt %s} is designed to help on all issues with media files, like tags (e.g. exif, id3) and transformations.