Job result should be converted to text before being logged.

main
Selwin Ong 9 years ago
parent bb4336f612
commit 2140cc4fab

@ -601,7 +601,7 @@ class Worker(object):
self.log.info(green('Job OK')) self.log.info(green('Job OK'))
if rv: if rv:
log_result = "{0!r}".format(text_type(rv)) log_result = "{0!r}".format(as_text(rv))
self.log.debug('Result: {0}'.format(yellow(log_result))) self.log.debug('Result: {0}'.format(yellow(log_result)))
if result_ttl == 0: if result_ttl == 0:

Loading…
Cancel
Save