add debug

This commit is contained in:
chrys 2018-05-22 20:55:33 +02:00
parent 1968e436eb
commit 4dd3627e9b
2 changed files with 756 additions and 1 deletions

753
fenrir.log Normal file

File diff suppressed because one or more lines are too long

View File

@ -327,6 +327,7 @@ class driver(inputDriver):
return return
try: try:
self.iDevices[fd].grab() self.iDevices[fd].grab()
self.env['runtime']['debug'].writeDebugOut("Device grabbed: " + self.iDevices[fd].name, debug.debugLevel.INFO)
self.gDevices[fd] = True self.gDevices[fd] = True
except IOError: except IOError:
self.gDevices[fd] = True self.gDevices[fd] = True
@ -338,6 +339,7 @@ class driver(inputDriver):
try: try:
self.gDevices[fd] = False self.gDevices[fd] = False
self.iDevices[fd].ungrab() self.iDevices[fd].ungrab()
self.env['runtime']['debug'].writeDebugOut("Device ungrabbed: " + self.iDevices[fd].name, debug.debugLevel.INFO)
except: except:
pass pass
def removeDevice(self,fd): def removeDevice(self,fd):