add debug

This commit is contained in:
chrys 2018-05-22 20:56:45 +02:00
parent 4dd3627e9b
commit 84a1b94ac2

View File

@ -327,8 +327,8 @@ 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
self.env['runtime']['debug'].writeDebugOut("Device grabbed: " + self.iDevices[fd].name, debug.debugLevel.INFO)
except IOError: except IOError:
self.gDevices[fd] = True self.gDevices[fd] = True
except Exception as e: except Exception as e: