瀏覽代碼

Add newline to task failed log message

Ask Solem 14 年之前
父節點
當前提交
4bca120eef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/worker/job.py

+ 1 - 1
celery/worker/job.py

@@ -23,7 +23,7 @@ from celery.worker import state
 # says "trailing whitespace" ;)
 EMAIL_SIGNATURE_SEP = "-- "
 TASK_ERROR_EMAIL_BODY = """
-Task %%(name)s with id %%(id)s raised exception: %%(exc)s
+Task %%(name)s with id %%(id)s raised exception:\n%%(exc)s
 
 
 Task was called with args: %%(args)s kwargs: %%(kwargs)s.