Merge pull request #578 from tbaugis/master

log job result in DEBUG level and truncate to 2k symbols
main
Selwin Ong 9 years ago
commit bb4336f612

@ -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')

Loading…
Cancel
Save