From 32be5ed1f88348b2182e632883ded7c411a29d57 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 26 Apr 2019 16:46:20 +0200 Subject: [PATCH] More logging for playback --- hugvey/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hugvey/client.py b/hugvey/client.py index 0aa6187..6bf74db 100644 --- a/hugvey/client.py +++ b/hugvey/client.py @@ -312,7 +312,7 @@ class CommandHandler(object): t.start() self.playPopen = subprocess.Popen( - playCmd, stdout=subprocess.PIPE, env=environment_vars) + playCmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=environment_vars) self.sendMessage({ 'event': 'playbackStart', 'msgId': msgId @@ -321,6 +321,9 @@ class CommandHandler(object): returnCode = self.playPopen.returncode if self.playPopen else 0 logger.debug('finished') self.playPopen = None + logger.log(LOG_BS,out) + if len(err) > 0: + logger.critical(err) if t is not None: t.cancel()