Skip to content

Commit

Permalink
fix: log task returns instead of printing
Browse files Browse the repository at this point in the history
  • Loading branch information
JPHutchins committed Apr 4, 2024
1 parent c1e30ca commit 087aa2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smpmgr/terminal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
import logging
from typing import Final, cast

import readchar
Expand All @@ -7,6 +8,8 @@

from smpmgr.common import Options

logger = logging.getLogger(__name__)

MAP_KEY_TO_BYTES: Final = {
readchar.key.CTRL_C: b"\x03",
readchar.key.UP: b"\x1b[A",
Expand Down Expand Up @@ -42,7 +45,7 @@ async def f() -> None:
return_when=asyncio.FIRST_EXCEPTION,
)

print(device_result, keyboard_result)
logger.debug(f"{device_result=}, {keyboard_result=}")

asyncio.run(f())

Expand Down

0 comments on commit 087aa2d

Please # to comment.