From ce4704f7c03e32249989cca5e3add0ea6465ab41 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 3 Oct 2020 10:07:21 +0300 Subject: [PATCH] fixed logging --- kvmd/plugins/hid/otg/usb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kvmd/plugins/hid/otg/usb.py b/kvmd/plugins/hid/otg/usb.py index 35800b0d..8e437b13 100644 --- a/kvmd/plugins/hid/otg/usb.py +++ b/kvmd/plugins/hid/otg/usb.py @@ -47,17 +47,17 @@ class UsbDeviceController: try: candidates = sorted(os.listdir(path)) except Exception as err: - logger.error("Can't list %s: %s: %s", path, type(err).__name__, err) + logger.error("Can't list %s: %s: %s: ignored", path, type(err).__name__, err) return udc = "" if not self.__udc: if len(candidates) == 0: - logger.warning("Can't find any UDC: ignored") + logger.error("Can't find any UDC: ignored") else: udc = candidates[0] elif self.__udc not in candidates: - logger.warning("Can't find selected UDC: %s: ignored", self.__udc) + logger.error("Can't find selected UDC: %s: ignored", self.__udc) else: udc = self.__udc