|
@@ -17,6 +17,11 @@ import stat
|
17
|
17
|
import sys
|
18
|
18
|
import random
|
19
|
19
|
|
|
20
|
+try:
|
|
21
|
+ from config import APP_NAME as ROOT_LOGGER_NAME
|
|
22
|
+except ImportError:
|
|
23
|
+ ROOT_LOGGER_NAME = 'root'
|
|
24
|
+
|
20
|
25
|
|
21
|
26
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
22
|
27
|
#
|
|
@@ -238,7 +243,7 @@ File "%(pathname)s", line %(lineno)d, in %(funcName)s
|
238
|
243
|
'level': 'INFO',
|
239
|
244
|
'propagate': False,
|
240
|
245
|
},
|
241
|
|
- config.APP_NAME: {
|
|
246
|
+ ROOT_LOGGER_NAME: {
|
242
|
247
|
'handlers': default_handler,
|
243
|
248
|
'level': 'DEBUG' if DEBUG else 'INFO',
|
244
|
249
|
'propagate': False,
|