summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-28 22:42:32 +0300
committerDevaev Maxim <[email protected]>2018-11-28 22:42:32 +0300
commit5407f983c87cb5fa0e123c3a2a9775ad93b1ab65 (patch)
tree3aa65effbd2d8f30a8c5fb9451a2808894a68152
parentfe4afd7623df7c54072c1b28ab90d3a547dfe231 (diff)
log before operations
-rw-r--r--kvmd/apps/kvmd/atx.py6
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()