浏览代码

Do not use processName on python 2.6.1. Closes #1644

Ask Solem 10 年之前
父节点
当前提交
4efe490a64
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      celery/app/defaults.py

+ 5 - 0
celery/app/defaults.py

@@ -47,6 +47,11 @@ _REDIS_OLD = {'deprecate_by': '2.5', 'remove_by': '4.0',
 searchresult = namedtuple('searchresult', ('namespace', 'key', 'type'))
 
 
+# logging: processName first introduced in Py 2.6.2 (Issue #1644).
+if sys.version_info() < (2, 6, 2):
+    DEFAULT_PROCESS_LOG_FMT = DEFAULT_LOG_FMT
+
+
 class Option(object):
     alt = None
     deprecate_by = None