More logging for playback

This commit is contained in:
Ruben van de Ven 2019-04-26 16:46:20 +02:00
parent 23cf100df7
commit 32be5ed1f8
1 changed files with 4 additions and 1 deletions

View File

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