Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Jan 18, 2024
1 parent 782298c commit 912c751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cmd/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,15 +336,15 @@ async def _inject_error() -> None:

async def _delay(target: Awaitable[None], delay: float, duration: Optional[float] = None) -> None:
await asyncio.sleep(delay)
_logger.info("LAUNCHING", target)
_logger.info("LAUNCHING %s", target)
try:
if duration is None:
await target
else:
await asyncio.wait_for(target, duration)
except (asyncio.TimeoutError, asyncio.CancelledError): # pragma: no cover
pass
_logger.info("FINISHED", target)
_logger.info("FINISHED %s", target)


async def _main() -> None: # pragma: no cover
Expand Down

0 comments on commit 912c751

Please sign in to comment.