From 816eba75634608823ccb050d7b365b94d975aa67 Mon Sep 17 00:00:00 2001 From: shenjingfs Date: Fri, 1 Jul 2022 17:58:10 +0800 Subject: [PATCH] fix: SentryHandler not handle stack trace --- lib/handlers/sentry_handler.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/handlers/sentry_handler.dart b/lib/handlers/sentry_handler.dart index cdeda011..467934c8 100644 --- a/lib/handlers/sentry_handler.dart +++ b/lib/handlers/sentry_handler.dart @@ -57,7 +57,7 @@ class SentryHandler extends ReportHandler { } final event = buildEvent(error, tags); - await sentryClient.captureEvent(event); + await sentryClient.captureEvent(event, stackTrace: error.stackTrace); _printLog("Logged to sentry!"); return true;