|
@@ -32,8 +32,11 @@ import os
|
32
|
32
|
import pickle
|
33
|
33
|
import sys
|
34
|
34
|
|
35
|
|
-logger_name = 'CACHING'
|
36
|
|
-logger = logging.getLogger(logger_name)
|
|
35
|
+try:
|
|
36
|
+ from config import APP_NAME as ROOT_LOGGER_NAME
|
|
37
|
+except ImportError:
|
|
38
|
+ ROOT_LOGGER_NAME = 'root'
|
|
39
|
+logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
37
|
40
|
|
38
|
41
|
__DESCRIPTION__ = """The Module {\\tt %s} is designed to store information in {\\tt json} or {\\tt pickle} files to support them much faster then generating them from the original source file.
|
39
|
42
|
For more Information read the documentation.""" % __name__.replace('_', '\_')
|