Skip to content

armgit / ente

Public Imported from GitHub
0

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

logging

laurenspriem78891490e4b7
diff --git a/mobile/apps/photos/lib/utils/ml_util.dart b/mobile/apps/photos/lib/utils/ml_util.dart
index a6dfdaaaed..4dc2d8c176 100644
--- a/mobile/apps/photos/lib/utils/ml_util.dart
+++ b/mobile/apps/photos/lib/utils/ml_util.dart
@@ -964,8 +964,7 @@ String formatExpectedMlSkipReasonForLogs(Object error) {
if (normalized.contains("filesizetoolargeformobileindexing")) {
return "file is too large for mobile indexing";
}
- final compact = _stripExceptionPrefixes(error.toString()).trim();
- final firstLine = compact.split('\n').first.trim();
+ final firstLine = error.toString().split('\n').first.trim();
return firstLine.isEmpty ? "unknown ML skip reason" : firstLine;
}
@@ -1065,15 +1064,6 @@ String _normalizedErrorMessage(Object error) {
return error.toString().toLowerCase();
}
-String _stripExceptionPrefixes(String message) {
- var stripped = message.trimLeft();
- const prefix = "Exception: ";
- while (stripped.startsWith(prefix)) {
- stripped = stripped.substring(prefix.length);
- }
- return stripped;
-}
-
Exception _asInvalidImageFormatExceptionForRustDecodeFailure({
required int enteFileID,
required String fileFormat,