Adaption to new logging

This commit is contained in:
Dirk Alders 2021-01-21 18:53:11 +01:00
parent dd0edc2d56
commit 5f30383c83

View File

@ -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):