summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-30 05:59:38 +0300
committerDevaev Maxim <[email protected]>2019-09-30 05:59:38 +0300
commitf29c5296cb9b5213574e657fcd151a232f4b2170 (patch)
treeedb849a189f2a96a0c66c40a26fd4624a2741539 /kvmd
parentce6cb3057a477fa11ab13e732c9589aab6efcc69 (diff)
error -> debug
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/plugins/hid/otg/hid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/plugins/hid/otg/hid.py b/kvmd/plugins/hid/otg/hid.py
index 2d8b9245..bbad8f68 100644
--- a/kvmd/plugins/hid/otg/hid.py
+++ b/kvmd/plugins/hid/otg/hid.py
@@ -130,7 +130,7 @@ class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instan
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 busy/unplugged (write): %s: %s", # TODO debug
+ logger.debug("HID-%s busy/unplugged (write): %s: %s",
self.__name, type(err).__name__, err)
else:
logger.exception("Can't write report to HID-%s", self.__name)
@@ -138,7 +138,7 @@ class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instan
retries -= 1
if retries:
- logger.error("HID-%s write retries left: %d", self.__name, retries) # TODO debug
+ logger.debug("HID-%s write retries left: %d", self.__name, retries)
time.sleep(self.__write_retries_delay)
self._close_device()
@@ -165,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 (select)", self.__name) # TODO debug
+ logger.debug("HID-%s is busy/unplugged (select)", self.__name)
except Exception as err:
logger.error("Can't select() HID-%s: %s: %s", self.__name, type(err).__name__, err)
self._close_device()