Skip to content

Commit f544f9a

Browse files
committed
chore(api): improve debug logging
1 parent b545cc2 commit f544f9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/autoafk/tools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def wait(seconds=1) -> None:
165165

166166
def touch_xy(x: int, y: int) -> None:
167167
TOUCH_DURATION_MS = 10
168+
logger.debug(f"touch (x={x}, y={y})")
168169
adb_client.longTouch(x, y, TOUCH_DURATION_MS)
169170

170171

@@ -272,6 +273,8 @@ def wait_until_img_visible(
272273
logger.debug(f"{image} available after {i * POLLING_INTERVAL_S}s")
273274
break
274275
wait(POLLING_INTERVAL_S)
276+
else:
277+
logger.debug(f"{image} not available after {timeout_s}s")
275278

276279
return box
277280

0 commit comments

Comments
 (0)