From b2c9837ef19954c3fa939d29b55a4a1cac700e85 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 17 May 2018 00:52:35 +0200 Subject: [PATCH] add debug --- src/fenrirscreenreader/inputDriver/evdevDriver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/inputDriver/evdevDriver.py b/src/fenrirscreenreader/inputDriver/evdevDriver.py index bcd94f94..1d457aa4 100644 --- a/src/fenrirscreenreader/inputDriver/evdevDriver.py +++ b/src/fenrirscreenreader/inputDriver/evdevDriver.py @@ -288,6 +288,7 @@ class driver(inputDriver): self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: init Uinput not possible: ' + str(e),debug.debugLevel.ERROR) return def addDevice(self, newDevice): + self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: device added: ' + str(newDevice.fd) + ' ' +str(newDevice),debug.debugLevel.INFO) self.iDevices[newDevice.fd] = newDevice self.gDevices[newDevice.fd] = False self.createUInputDev(newDevice.fd) @@ -308,7 +309,7 @@ class driver(inputDriver): except: pass def removeDevice(self,fd): - self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: device removed: ' + str(fd) + ' ' +str(self.iDevices[fd]),debug.debugLevel.ERROR) + self.env['runtime']['debug'].writeDebugOut('InputDriver evdev: device removed: ' + str(fd) + ' ' +str(self.iDevices[fd]),debug.debugLevel.INFO) self.clearEventBuffer() try: self.ungrabDevice(fd)