diff options
author | Devaev Maxim <[email protected]> | 2019-06-06 04:17:49 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-06-06 04:17:49 +0300 |
commit | 85c67ffcbb43e80f06ba97d96c4e327f0c152a68 (patch) | |
tree | facf41b47282428086b044049f65f61826e7c6b3 /kvmd/apps | |
parent | 0f4b990eaed1b4e668767b2b3127986c2aed5d45 (diff) |
fixed logging depth
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/kvmd/hid.py | 4 | ||||
-rw-r--r-- | kvmd/apps/kvmd/msd.py | 6 |
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) |