clearer output from triggers

This commit is contained in:
Davide Alberani 2017-04-23 18:22:25 +02:00
parent 11e6419a34
commit 5abbfdef59

View file

@ -554,8 +554,8 @@ class CollectionHandler(BaseHandler):
out, err = yield [gen.Task(p.stdout.read_until_close),
gen.Task(p.stderr.read_until_close)]
logging.debug('cmd: %s' % ' '.join(cmd))
logging.debug('cmd stdout: %s' % out)
logging.debug('cmd strerr: %s' % err)
logging.debug('cmd stdout: %s' % out.decode(ENCODING))
logging.debug('cmd strerr: %s' % err.decode(ENCODING))
raise gen.Return((out, err))
@gen.coroutine