diff --git a/rq/worker.py b/rq/worker.py index c1c5d8e..231b219 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -599,10 +599,10 @@ class Worker(object): self.handle_exception(job, *sys.exc_info()) return False - if rv is None: - self.log.info('Job OK') - else: - self.log.info('Job OK, result = {0!r}'.format(yellow(text_type(rv)))) + self.log.info(green('Job OK')) + if rv: + log_result = "{0!r}".format(text_type(rv)) + self.log.debug('Result: {0}'.format(yellow(log_result))) if result_ttl == 0: self.log.info('Result discarded immediately')