|
@@ -38,8 +38,11 @@ else:
|
38
|
38
|
from Queue import PriorityQueue
|
39
|
39
|
from Queue import Empty
|
40
|
40
|
|
41
|
|
-logger_name = 'TASK'
|
42
|
|
-logger = logging.getLogger(logger_name)
|
|
41
|
+try:
|
|
42
|
+ from config import APP_NAME as ROOT_LOGGER_NAME
|
|
43
|
+except ImportError:
|
|
44
|
+ ROOT_LOGGER_NAME = 'root'
|
|
45
|
+logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
43
|
46
|
|
44
|
47
|
__DESCRIPTION__ = """The Module {\\tt %s} is designed to help with task issues like periodic tasks, delayed tasks, queues, threaded queues and crontabs.
|
45
|
48
|
For more Information read the documentation.""" % __name__.replace('_', '\_')
|