Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skip reporting TaskQueue exception on sentry

Neeraj Guptad0474be68053
diff --git a/mobile/apps/photos/lib/core/error-reporting/super_logging.dart b/mobile/apps/photos/lib/core/error-reporting/super_logging.dart
index 3ea0e7aa18..825f4175b8 100644
--- a/mobile/apps/photos/lib/core/error-reporting/super_logging.dart
+++ b/mobile/apps/photos/lib/core/error-reporting/super_logging.dart
@@ -19,6 +19,7 @@ import 'package:photos/models/typedefs.dart';
import "package:photos/services/machine_learning/ml_exceptions.dart";
import "package:photos/utils/device_info.dart";
import "package:photos/utils/ram_check_util.dart";
+import "package:photos/utils/standalone/task_queue.dart";
import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:shared_preferences/shared_preferences.dart';
@@ -281,6 +282,9 @@ class SuperLogging {
error is WiFiUnavailableError ||
error is InvalidFileError ||
error is NoActiveSubscriptionError ||
+ error is TaskQueueTimeoutException ||
+ error is TaskQueueOverflowException ||
+ error is TaskQueueCancelledException ||
error is CouldNotRetrieveAnyFileData;
if (kDebugMode && result) {
$.info('Not sending error to sentry: $error');