From a33f4c7f42c7cd11af67e57423ebf67240f19943 Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Tue, 7 Jul 2020 15:57:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A0=20=E4=BC=98=E5=8C=96=20sentry=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pagermaid/listener.py b/pagermaid/listener.py index c27f762..d08a0c6 100644 --- a/pagermaid/listener.py +++ b/pagermaid/listener.py @@ -79,9 +79,9 @@ def listener(**args): f"# Traceback: \n-----BEGIN TRACEBACK-----\n" \ f"{str(format_exc())}\n-----END TRACEBACK-----\n" \ f"# Error: \"{str(exc_info()[1])}\". \n" - report_sentry = f"# M: {context.text}\n\n" \ + report_sentry = f"# M: {context.text}\n" \ f"# Trace: \n" \ - f"{str(format_exc())}\n-END-\n" \ + f"{str(format_exc())}\n" \ f"# Error: \"{str(exc_info()[1])}\". \n" try: sentry_sdk.init("https://969892b513374f75916aaac1014aa7c2@o416616.ingest.sentry.io/5312335", release="d6f5b9725459f5d0cf96f005bf584d1a7235c405")