From b5cf0067d5b3df8744f9a57a0f1169be1c62ea3a Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 25 Mar 2017 22:45:10 -0700 Subject: [PATCH] logging_handlers: Avoid super long subject lines. --- zerver/logging_handlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zerver/logging_handlers.py b/zerver/logging_handlers.py index 778ca72d09..f37fdafac3 100644 --- a/zerver/logging_handlers.py +++ b/zerver/logging_handlers.py @@ -70,12 +70,14 @@ class AdminZulipHandler(logging.Handler): try: if record.exc_info: stack_trace = ''.join(traceback.format_exception(*record.exc_info)) # type: Optional[str] + message = str(record.exc_info[1]) else: stack_trace = None + message = record.getMessage() report = dict( node = platform.node(), - message = record.getMessage(), + message = message, stack_trace = stack_trace, ) if hasattr(record, "request"):