Преглед изворни кода

Add newline to task failed log message

Ask Solem пре 14 година
родитељ
комит
97aee1816b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      celery/worker/job.py

+ 1 - 1
celery/worker/job.py

@@ -22,7 +22,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.