💠 优化 sentry 提交

This commit is contained in:
Xtao_dada 2020-07-07 15:57:26 +08:00 committed by GitHub
parent 690332d9e3
commit a33f4c7f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,9 +79,9 @@ def listener(**args):
f"# Traceback: \n-----BEGIN TRACEBACK-----\n" \ f"# Traceback: \n-----BEGIN TRACEBACK-----\n" \
f"{str(format_exc())}\n-----END TRACEBACK-----\n" \ f"{str(format_exc())}\n-----END TRACEBACK-----\n" \
f"# Error: \"{str(exc_info()[1])}\". \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"# Trace: \n" \
f"{str(format_exc())}\n-END-\n" \ f"{str(format_exc())}\n" \
f"# Error: \"{str(exc_info()[1])}\". \n" f"# Error: \"{str(exc_info()[1])}\". \n"
try: try:
sentry_sdk.init("https://969892b513374f75916aaac1014aa7c2@o416616.ingest.sentry.io/5312335", release="d6f5b9725459f5d0cf96f005bf584d1a7235c405") sentry_sdk.init("https://969892b513374f75916aaac1014aa7c2@o416616.ingest.sentry.io/5312335", release="d6f5b9725459f5d0cf96f005bf584d1a7235c405")