|
|
@ -19,10 +19,10 @@ import 'views/chat_list.dart';
|
|
|
|
final sentry = SentryClient(dsn: '8591d0d863b646feb4f3dda7e5dcab38');
|
|
|
|
final sentry = SentryClient(dsn: '8591d0d863b646feb4f3dda7e5dcab38');
|
|
|
|
|
|
|
|
|
|
|
|
void captureException(error, stackTrace) async {
|
|
|
|
void captureException(error, stackTrace) async {
|
|
|
|
final storage = LocalStorage('LocalStorage');
|
|
|
|
|
|
|
|
await storage.ready;
|
|
|
|
|
|
|
|
debugPrint(error.toString());
|
|
|
|
debugPrint(error.toString());
|
|
|
|
debugPrint(stackTrace.toString());
|
|
|
|
debugPrint(stackTrace.toString());
|
|
|
|
|
|
|
|
final storage = LocalStorage('LocalStorage');
|
|
|
|
|
|
|
|
await storage.ready;
|
|
|
|
if (storage.getItem('sentry') == true) {
|
|
|
|
if (storage.getItem('sentry') == true) {
|
|
|
|
await sentry.captureException(
|
|
|
|
await sentry.captureException(
|
|
|
|
exception: error,
|
|
|
|
exception: error,
|
|
|
|