2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00

Attempt to capture stacktrace data when uploading a custom message to sentry

This commit is contained in:
Oliver Walters 2022-05-22 10:23:27 +10:00
parent 55f713e3aa
commit 69e00a5fd8

View File

@ -129,6 +129,9 @@ Future<bool> sentryReportMessage(String message, {Map<String, String>? context})
if (context != null) {
scope.setExtra("context", context);
}
// Catch stacktrace data if possible
scope.setExtra("stacktrace", StackTrace.current.toString());
});
try {