From 5abbfdef5903120982b5bcf0c8882ae66407f3cc Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 23 Apr 2017 18:22:25 +0200 Subject: [PATCH] clearer output from triggers --- eventman_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eventman_server.py b/eventman_server.py index ec00567..8d4ed56 100755 --- a/eventman_server.py +++ b/eventman_server.py @@ -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