Actually fix mbc logs
This commit is contained in:
parent
5baab99957
commit
d4face0150
@ -38,13 +38,7 @@ def logs(server: str, tail: int) -> None:
|
|||||||
global history_count
|
global history_count
|
||||||
history_count = tail
|
history_count = tail
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
future = asyncio.create_task(view_logs(server, token))
|
loop.run_until_complete(view_logs(server, token))
|
||||||
try:
|
|
||||||
loop.run_until_complete(future)
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
future.cancel()
|
|
||||||
loop.run_until_complete(future)
|
|
||||||
loop.close()
|
|
||||||
|
|
||||||
|
|
||||||
def parsedate(entry: Obj) -> None:
|
def parsedate(entry: Obj) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user