From 160dd6c53403a2327f56c1b22a49757d67b84c2a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 14 Dec 2018 00:40:35 +0200 Subject: [PATCH] Print exception stack traces in cli log viewer --- maubot/cli/commands/logs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maubot/cli/commands/logs.py b/maubot/cli/commands/logs.py index 3705d47..e931f34 100644 --- a/maubot/cli/commands/logs.py +++ b/maubot/cli/commands/logs.py @@ -75,6 +75,8 @@ def print_entry(entry: dict) -> None: resetcolor=Fore.RESET, logger=entry.name, message=entry.msg)) + if entry.exc_info: + print(entry.exc_info) def handle_msg(data: dict) -> bool: