summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvmd/apps/kvmd/hid.py4
-rw-r--r--kvmd/apps/kvmd/msd.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/kvmd/apps/kvmd/hid.py b/kvmd/apps/kvmd/hid.py
index 5b51b850..9e866bf6 100644
--- a/kvmd/apps/kvmd/hid.py
+++ b/kvmd/apps/kvmd/hid.py
@@ -195,10 +195,10 @@ class Hid(multiprocessing.Process): # pylint: disable=too-many-instance-attribu
async with self.__lock:
if self.is_alive():
self.__unsafe_clear_events()
- get_logger().info("Stopping HID daemon ...")
+ get_logger(0).info("Stopping HID daemon ...")
self.__stop_event.set()
else:
- get_logger().warning("Emergency cleaning up HID events ...")
+ get_logger(0).warning("Emergency cleaning up HID events ...")
self.__emergency_clear_events()
if self.exitcode is not None:
self.join()
diff --git a/kvmd/apps/kvmd/msd.py b/kvmd/apps/kvmd/msd.py
index 995f64da..8b92aaed 100644
--- a/kvmd/apps/kvmd/msd.py
+++ b/kvmd/apps/kvmd/msd.py
@@ -298,7 +298,7 @@ class MassStorageDevice: # pylint: disable=too-many-instance-attributes
raise
state = self.get_state()
await self.__state_queue.put(state)
- get_logger().info("Mass-storage device switched to KVM: %s", self.__device_info)
+ get_logger(0).info("Mass-storage device switched to KVM: %s", self.__device_info)
return state
@_msd_working
@@ -311,7 +311,7 @@ class MassStorageDevice: # pylint: disable=too-many-instance-attributes
self.__device_info = None
state = self.get_state()
await self.__state_queue.put(state)
- get_logger().info("Mass-storage device switched to Server")
+ get_logger(0).info("Mass-storage device switched to Server")
return state
@_msd_working
@@ -319,7 +319,7 @@ class MassStorageDevice: # pylint: disable=too-many-instance-attributes
@aiotools.atomic
async def reset(self) -> None:
with self.__region:
- get_logger().info("Mass-storage device reset")
+ get_logger(0).info("Mass-storage device reset")
gpio.write(self.__reset_pin, True)
await asyncio.sleep(self.__reset_delay)
gpio.write(self.__reset_pin, False)