π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Lower severity logging
laurenspriem968f04c04af4
diff --git a/mobile/apps/photos/lib/db/ml/db.dart b/mobile/apps/photos/lib/db/ml/db.dartindex 5ab5d28c8b..bc0913f8fe 100644--- a/mobile/apps/photos/lib/db/ml/db.dart+++ b/mobile/apps/photos/lib/db/ml/db.dart@@ -360,10 +360,6 @@ class MLDataDB with SqlDbBase implements IMLDataDB<int> {}return mapRowToFace(faceMaps.first);}- } else if (clusterID == null) {- _logger.severe(- "Didn't find any faces for personID $personID in `getCoverFaceForPerson`.",- );}if (clusterID != null) {const String queryFaceID = '''@@ -384,10 +380,6 @@ class MLDataDB with SqlDbBase implements IMLDataDB<int> {return face;}}- } else {- _logger.severe(- "Didn't find any faces for clusterID $clusterID in `getCoverFaceForPerson`. faces: $faces",- );}}if (personID == null && clusterID == null) {diff --git a/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart b/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dartindex 448eb7789a..6f390fcf77 100644--- a/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart+++ b/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart@@ -129,14 +129,14 @@ Future<Map<String, Uint8List>?> getCachedFaceCrops();faceIdToCrop[face.faceID] = data;} else {- _logger.severe(+ _logger.warning("Cached face crop for faceID ${face.faceID} is empty, deleting file ${faceCropCacheFile.path}",);await faceCropCacheFile.delete();facesWithoutCrops[face.faceID] = face.detection.box;}} catch (e, s) {- _logger.severe(+ _logger.warning("Error reading cached face crop for faceID ${face.faceID} from file ${faceCropCacheFile.path}",e,s,@@ -212,7 +212,7 @@ Future<Map<String, Uint8List>?> getCachedFaceCrops(milliseconds: 100 * pow(2, fetchAttempt + 1).toInt(),);await Future.delayed(backoff);- _logger.warning(+ _logger.fine("Error getting face crops for faceIDs: ${faces.map((face) => face.faceID).toList()}, retrying (attempt ${fetchAttempt + 1}) in ${backoff.inMilliseconds} ms",e,s,@@ -225,7 +225,7 @@ Future<Map<String, Uint8List>?> getCachedFaceCrops(useTempCache: useTempCache,);}- _logger.severe(+ _logger.warning("Error getting face crops for faceIDs: ${faces.map((face) => face.faceID).toList()}",e,s,diff --git a/mobile/apps/photos/lib/utils/image_ml_util.dart b/mobile/apps/photos/lib/utils/image_ml_util.dartindex ab8b4a4e0f..0ab1428fea 100644--- a/mobile/apps/photos/lib/utils/image_ml_util.dart+++ b/mobile/apps/photos/lib/utils/image_ml_util.dart@@ -575,7 +575,7 @@ Future<List<Uint8List>> compressFaceThumbnails(Map args) async {}return await Future.wait(compressedBytesList);} catch (e, s) {- _logger.severe(+ _logger.warning('Failed to compress face thumbnail, using original. Size: ${listPngBytes.map((e) => e.length).toList()} bytes',e,s,