Browse Source

Adaption to new logging

make_mycreole_indenpendent_from_patt
Dirk Alders 3 years ago
parent
commit
5f30383c83
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      views.py

+ 5
- 1
views.py View File

10
 import themes
10
 import themes
11
 from django.contrib import messages
11
 from django.contrib import messages
12
 
12
 
13
-logger = logging.getLogger('APP')
13
+try:
14
+    from config import APP_NAME as ROOT_LOGGER_NAME
15
+except ImportError:
16
+    ROOT_LOGGER_NAME = 'root'
17
+logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
14
 
18
 
15
 
19
 
16
 def get_method(import_string):
20
 def get_method(import_string):

Loading…
Cancel
Save