diff options
author | Devaev Maxim <[email protected]> | 2019-09-30 04:59:40 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-30 05:47:45 +0300 |
commit | ce6cb3057a477fa11ab13e732c9589aab6efcc69 (patch) | |
tree | 5404045c840358cb42125b5f4ab2202bde6b63eb /kvmd/plugins/hid/otg/hid.py | |
parent | e1b7e4fbcd1f34878162bc8bbeb92b7f47f058cc (diff) |
otg mouse
Diffstat (limited to 'kvmd/plugins/hid/otg/hid.py')
-rw-r--r-- | kvmd/plugins/hid/otg/hid.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kvmd/plugins/hid/otg/hid.py b/kvmd/plugins/hid/otg/hid.py index e0cf1120..2d8b9245 100644 --- a/kvmd/plugins/hid/otg/hid.py +++ b/kvmd/plugins/hid/otg/hid.py @@ -126,11 +126,12 @@ class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instan self.__online_shared.value = 1 return True else: - logger.error("HID-%s write error: written (%s) != report length (%d)", + logger.error("HID-%s write() error: written (%s) != report length (%d)", self.__name, written, len(report)) except Exception as err: if isinstance(err, OSError) and err.errno == errno.EAGAIN: # pylint: disable=no-member - logger.error("HID-%s is busy/unplugged: %s: %s", self.__name, type(err).__name__, err) # TODO debug + logger.error("HID-%s busy/unplugged (write): %s: %s", # TODO debug + self.__name, type(err).__name__, err) else: logger.exception("Can't write report to HID-%s", self.__name) @@ -164,7 +165,7 @@ class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instan self.__online_shared.value = 1 return True else: - logger.error("HID-%s is busy/unplugged", self.__name) # TODO debug + logger.error("HID-%s is busy/unplugged (select)", self.__name) # TODO debug except Exception as err: logger.error("Can't select() HID-%s: %s: %s", self.__name, type(err).__name__, err) self._close_device() |