Actually fix mbc logs

This commit is contained in:
Tulir Asokan 2022-04-26 23:52:59 +03:00
parent 5baab99957
commit d4face0150

View file

@ -38,13 +38,7 @@ def logs(server: str, tail: int) -> None:
global history_count
history_count = tail
loop = asyncio.get_event_loop()
future = asyncio.create_task(view_logs(server, token))
try:
loop.run_until_complete(future)
except KeyboardInterrupt:
future.cancel()
loop.run_until_complete(future)
loop.close()
loop.run_until_complete(view_logs(server, token))
def parsedate(entry: Obj) -> None: