瀏覽代碼

Release 0e9c2f2af9

master
Dirk Alders 3 年之前
父節點
當前提交
bbc3c6f935
共有 3 個文件被更改,包括 5928 次插入5864 次删除
  1. 5
    2
      __init__.py
  2. 5923
    5862
      _testresults_/unittest.json
  3. 二進制
      _testresults_/unittest.pdf

+ 5
- 2
__init__.py 查看文件

@@ -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('_', '\_')

+ 5923
- 5862
_testresults_/unittest.json
文件差異過大導致無法顯示
查看文件


二進制
_testresults_/unittest.pdf 查看文件


Loading…
取消
儲存