Adaption to new logging
这个提交包含在:
父节点
226c87f918
当前提交
abcf63d02e
@ -28,8 +28,11 @@ import io
|
|||||||
import logging
|
import logging
|
||||||
from PIL import Image, ImageEnhance, ExifTags
|
from PIL import Image, ImageEnhance, ExifTags
|
||||||
|
|
||||||
logger_name = 'MEDIA'
|
try:
|
||||||
logger = logging.getLogger(logger_name)
|
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.
|
__DESCRIPTION__ = """The Module {\\tt %s} is designed to help on all issues with media files, like tags (e.g. exif, id3) and transformations.
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户