From d4face01509169036ddb7f4c5751c48ba92607cf Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 26 Apr 2022 23:52:59 +0300 Subject: [PATCH] Actually fix mbc logs --- maubot/cli/commands/logs.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/maubot/cli/commands/logs.py b/maubot/cli/commands/logs.py index 914f776..e0ed07d 100644 --- a/maubot/cli/commands/logs.py +++ b/maubot/cli/commands/logs.py @@ -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: