From 5f30383c83b0ea94341b999c489a34f2e7d57f80 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Thu, 21 Jan 2021 18:53:11 +0100 Subject: [PATCH] Adaption to new logging --- views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/views.py b/views.py index 1a6d0fb..b32774c 100644 --- a/views.py +++ b/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):