Adaption to new logging
This commit is contained in:
父節點
dd0edc2d56
當前提交
5f30383c83
6
views.py
6
views.py
@ -10,7 +10,11 @@ import os
|
||||
import themes
|
||||
from django.contrib import messages
|
||||
|
||||
logger = logging.getLogger('APP')
|
||||
try:
|
||||
from config import APP_NAME as ROOT_LOGGER_NAME
|
||||
except ImportError:
|
||||
ROOT_LOGGER_NAME = 'root'
|
||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
||||
|
||||
|
||||
def get_method(import_string):
|
||||
|
載入中…
x
新增問題並參考
Block a user