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()) self.handle_exception(job, *sys.exc_info())
return False return False
if rv is None: self.log.info(green('Job OK'))
self.log.info('Job OK') if rv:
else: log_result = "{0!r}".format(text_type(rv))
self.log.info('Job OK, result = {0!r}'.format(yellow(text_type(rv)))) self.log.debug('Result: {0}'.format(yellow(log_result)))
if result_ttl == 0: if result_ttl == 0:
self.log.info('Result discarded immediately') self.log.info('Result discarded immediately')

Loading…
Cancel
Save