From dbebbd1230b63ac1555ab0dae9ba709f58b5b14f Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 7 May 2017 20:44:27 +0200 Subject: [PATCH] add info with running command to debug --- src/fenrir/speechDriver/genericDriver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fenrir/speechDriver/genericDriver.py b/src/fenrir/speechDriver/genericDriver.py index ee033b8f..98141b8a 100644 --- a/src/fenrir/speechDriver/genericDriver.py +++ b/src/fenrir/speechDriver/genericDriver.py @@ -150,12 +150,14 @@ class driver(): popenSpeechCommand = popenSpeechCommand.replace('fenrirText', str(utterance['text']).replace('"','').replace('\n','')) try: + self.env['runtime']['debug'].writeDebugOut('speechDriver:worker:' + popenSpeechCommand,debug.debugLevel.INFO) self.lock.acquire(True) self.proc = Popen(popenSpeechCommand, shell=True) self.lock.release() self.proc.wait() except Exception as e: self.env['runtime']['debug'].writeDebugOut('speechDriver:worker:' + str(e),debug.debugLevel.ERROR) + self.lock.acquire(True) self.proc = None self.lock.release()