Permalink
Browse files

Slightly modified task result logging

  • Loading branch information...
1 parent b628404 commit 864503350558999d95235c1e4153ef8a70e2063c Vladimir Gorej committed Nov 21, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 django_gearman_commands/__init__.py
@@ -85,11 +85,10 @@ def _invoke_job(self, worker, job):
result = self.do_job(job_data)
- log.info('Job finished, task: %s', self.task_name)
+ log.info('Job finished, task: %s, result %s', self.task_name, result)
self.stdout.write('Job finished, task: {0:s}\n'.format(self.task_name))
if result is not None:
- log.info(result)
self.stdout.write('{0:s}\n'.format(result))
return 'OK'

0 comments on commit 8645033

Please sign in to comment.