Avoid closing the churning zeroconf instances in the host resolver (#730)

This commit is contained in:
J. Nick Koston 2023-11-26 10:12:29 -06:00 committed by GitHub
parent aded2d28b5
commit c9091cbefc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ async def main(argv: list[str]) -> None:
time_ = datetime.now()
message: bytes = msg.message
text = message.decode("utf8", "backslashreplace")
print(f"[{time_.hour:02}:{time_.minute:02}:{time_.second:02}]{text}")
nanoseconds = time_.microsecond // 1000
print(
f"[{time_.hour:02}:{time_.minute:02}:{time_.second:02}.{nanoseconds:03}]{text}"
)
stop = await async_run(cli, on_log)
try: