More logging for playback
This commit is contained in:
parent
23cf100df7
commit
32be5ed1f8
1 changed files with 4 additions and 1 deletions
|
@ -312,7 +312,7 @@ class CommandHandler(object):
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
self.playPopen = subprocess.Popen(
|
self.playPopen = subprocess.Popen(
|
||||||
playCmd, stdout=subprocess.PIPE, env=environment_vars)
|
playCmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=environment_vars)
|
||||||
self.sendMessage({
|
self.sendMessage({
|
||||||
'event': 'playbackStart',
|
'event': 'playbackStart',
|
||||||
'msgId': msgId
|
'msgId': msgId
|
||||||
|
@ -321,6 +321,9 @@ class CommandHandler(object):
|
||||||
returnCode = self.playPopen.returncode if self.playPopen else 0
|
returnCode = self.playPopen.returncode if self.playPopen else 0
|
||||||
logger.debug('finished')
|
logger.debug('finished')
|
||||||
self.playPopen = None
|
self.playPopen = None
|
||||||
|
logger.log(LOG_BS,out)
|
||||||
|
if len(err) > 0:
|
||||||
|
logger.critical(err)
|
||||||
|
|
||||||
if t is not None:
|
if t is not None:
|
||||||
t.cancel()
|
t.cancel()
|
||||||
|
|
Loading…
Reference in a new issue