Skip to content
Browse files

log an error when the job fails

  • Loading branch information...
1 parent 8b7c9b6 commit cc47f2db86de1d0a874087b9c8fc2925eeba7ff6 @ant0ine ant0ine committed Dec 12, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 dangagearman/worker.py
View
1 dangagearman/worker.py
@@ -116,6 +116,7 @@ def _work_connection(self, conn, hooks=None):
except Exception:
if hooks:
hooks.fail(job, sys.exc_info())
+ log.error("Job failed: %s" % str(sys.exc_info()))
job.fail()
else:
if hooks:

0 comments on commit cc47f2d

Please sign in to comment.
Something went wrong with that request. Please try again.