Adaption to new logging
This commit is contained in:
parent
dd0edc2d56
commit
5f30383c83
6
views.py
6
views.py
@ -10,7 +10,11 @@ import os
|
|||||||
import themes
|
import themes
|
||||||
from django.contrib import messages
|
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):
|
def get_method(import_string):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user