add more debug
This commit is contained in:
parent
182309c531
commit
fa33b21758
@ -95,7 +95,7 @@ interruptOnKeyPress=False
|
|||||||
doubleTapDelay=0.2
|
doubleTapDelay=0.2
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=0
|
debugLevel=2
|
||||||
punctuationLevel=Some
|
punctuationLevel=Some
|
||||||
numberOfClipboards=10
|
numberOfClipboards=10
|
||||||
# define the current fenrir key
|
# define the current fenrir key
|
||||||
|
@ -68,6 +68,7 @@ class commandManager():
|
|||||||
if self.commandExists(oldScript, trigger):
|
if self.commandExists(oldScript, trigger):
|
||||||
try:
|
try:
|
||||||
self.env['commands'][trigger][oldScript].unload()
|
self.env['commands'][trigger][oldScript].unload()
|
||||||
|
self.env['runtime']['debug'].writeDebugOut("Executing switchtrigger.unload:" + trigger + "." + oldScript ,debug.debugLevel.INFO)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
self.env['runtime']['debug'].writeDebugOut("Executing trigger:" + trigger + "." + oldScript ,debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut("Executing trigger:" + trigger + "." + oldScript ,debug.debugLevel.ERROR)
|
||||||
@ -77,6 +78,7 @@ class commandManager():
|
|||||||
if self.commandExists(newScript, trigger):
|
if self.commandExists(newScript, trigger):
|
||||||
try:
|
try:
|
||||||
self.env['commands'][trigger][newScript].load()
|
self.env['commands'][trigger][newScript].load()
|
||||||
|
self.env['runtime']['debug'].writeDebugOut("Executing switchtrigger.load:" + trigger + "." + newScript ,debug.debugLevel.INFO)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
self.env['runtime']['debug'].writeDebugOut("Executing trigger:" + trigger + "." + newScript ,debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut("Executing trigger:" + trigger + "." + newScript ,debug.debugLevel.ERROR)
|
||||||
@ -89,6 +91,7 @@ class commandManager():
|
|||||||
if self.commandExists(command, trigger):
|
if self.commandExists(command, trigger):
|
||||||
try:
|
try:
|
||||||
self.env['commands'][trigger][command].run()
|
self.env['commands'][trigger][command].run()
|
||||||
|
self.env['runtime']['debug'].writeDebugOut("Executing trigger.command:" + trigger + "." + command ,debug.debugLevel.INFO)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
self.env['runtime']['debug'].writeDebugOut("Executing trigger:" + trigger + "." + command ,debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut("Executing trigger:" + trigger + "." + command ,debug.debugLevel.ERROR)
|
||||||
@ -102,8 +105,10 @@ class commandManager():
|
|||||||
if self.env['generalInformation']['tutorialMode']:
|
if self.env['generalInformation']['tutorialMode']:
|
||||||
description = self.env['commands'][section][command].getDescription()
|
description = self.env['commands'][section][command].getDescription()
|
||||||
self.env['runtime']['outputManager'].presentText(description, interrupt=True)
|
self.env['runtime']['outputManager'].presentText(description, interrupt=True)
|
||||||
|
self.env['runtime']['debug'].writeDebugOut("Tutorial for command:" + section + "." + command ,debug.debugLevel.INFO)
|
||||||
else:
|
else:
|
||||||
self.env['commands'][section][command].run()
|
self.env['commands'][section][command].run()
|
||||||
|
self.env['runtime']['debug'].writeDebugOut("Executing command:" + section + "." + command ,debug.debugLevel.INFO)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
@ -84,8 +84,8 @@ class outputManager():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
text = self.env['runtime']['punctuationManager'].proceedPunctuation(text,ignorePunctuation)
|
text = self.env['runtime']['punctuationManager'].proceedPunctuation(text,ignorePunctuation)
|
||||||
|
|
||||||
self.env['runtime']['speechDriver'].speak(text)
|
self.env['runtime']['speechDriver'].speak(text)
|
||||||
|
self.env['runtime']['debug'].writeDebugOut("Speak: "+ text,debug.debugLevel.INFO)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
self.env['runtime']['debug'].writeDebugOut("\"speak\" in outputManager.speakText ",debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut("\"speak\" in outputManager.speakText ",debug.debugLevel.ERROR)
|
||||||
@ -100,6 +100,8 @@ class outputManager():
|
|||||||
|
|
||||||
def interruptOutput(self):
|
def interruptOutput(self):
|
||||||
self.env['runtime']['speechDriver'].cancel()
|
self.env['runtime']['speechDriver'].cancel()
|
||||||
|
self.env['runtime']['debug'].writeDebugOut("Interrupt speech",debug.debugLevel.INFO)
|
||||||
|
|
||||||
|
|
||||||
def playSoundIcon(self, soundIcon = '', interrupt=True):
|
def playSoundIcon(self, soundIcon = '', interrupt=True):
|
||||||
if soundIcon == '':
|
if soundIcon == '':
|
||||||
|
@ -52,7 +52,7 @@ class settingsManager():
|
|||||||
shortcutKeys.append(key.upper())
|
shortcutKeys.append(key.upper())
|
||||||
shortcut.append(shortcutRepeat)
|
shortcut.append(shortcutRepeat)
|
||||||
shortcut.append(sorted(shortcutKeys))
|
shortcut.append(sorted(shortcutKeys))
|
||||||
print(str(shortcut), commandName)
|
self.env['runtime']['debug'].writeDebugOut("Shortcut: "+ str(shortcut) + ' command:' +commandName ,debug.debugLevel.INFO)
|
||||||
self.env['bindings'][str(shortcut)] = commandName
|
self.env['bindings'][str(shortcut)] = commandName
|
||||||
kbConfig.close()
|
kbConfig.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user