Explorar o código

Add newline to task failed log message

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
97aee1816b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.