diff options
author | Devaev Maxim <[email protected]> | 2018-11-28 22:42:32 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-28 22:42:32 +0300 |
commit | 5407f983c87cb5fa0e123c3a2a9775ad93b1ab65 (patch) | |
tree | 3aa65effbd2d8f30a8c5fb9451a2808894a68152 | |
parent | fe4afd7623df7c54072c1b28ab90d3a547dfe231 (diff) |
log before operations
-rw-r--r-- | kvmd/apps/kvmd/atx.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/kvmd/atx.py b/kvmd/apps/kvmd/atx.py index 7bf237c9..34b08896 100644 --- a/kvmd/apps/kvmd/atx.py +++ b/kvmd/apps/kvmd/atx.py @@ -54,16 +54,16 @@ class Atx: # pylint: disable=too-many-instance-attributes await asyncio.sleep(self.__state_poll) async def click_power(self) -> None: + get_logger().info("Clicking power ...") await self.__click(self.__power_switch, self.__click_delay) - get_logger().info("Clicked power") async def click_power_long(self) -> None: + get_logger().info("Clicking power (long press) ...") await self.__click(self.__power_switch, self.__long_click_delay) - get_logger().info("Clicked power (long press)") async def click_reset(self) -> None: + get_logger().info("Clicking reset") await self.__click(self.__reset_switch, self.__click_delay) - get_logger().info("Clicked reset") async def __click(self, pin: int, delay: float) -> None: self.__region.enter() |