Ver código fonte

Add newline to task failed log message

Ask Solem 14 anos atrás
pai
commit
4bca120eef
1 arquivos alterados com 1 adições e 1 exclusões
  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.