Add glitchtip for centralized error logging
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:kooltab2/models/payment_method.dart';
|
||||
import 'package:kooltab2/services/pin_lock_service.dart';
|
||||
import 'package:kooltab2/services/product_service.dart';
|
||||
import 'package:kooltab2/services/settings_service.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
class DevMenuViewModel extends ChangeNotifier {
|
||||
@@ -255,6 +256,12 @@ class DevMenuViewModel extends ChangeNotifier {
|
||||
_isLoading = false;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
try {
|
||||
throw Exception('Test GlitchTip error!');
|
||||
} catch (exception, stackTrace) {
|
||||
Sentry.captureException(exception, stackTrace: stackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> generateMockOrders({int count = 100}) async {
|
||||
|
||||
Reference in New Issue
Block a user