[mob][photos] Logging

This commit is contained in:
laurenspriem
2024-06-19 14:07:20 +05:30
parent 8c0d21ea25
commit 541ed4fdba

View File

@@ -151,6 +151,13 @@ class ClusterFeedbackService {
final embeddings =
await FaceMLDataDB.instance.getFaceEmbeddingMapForFaces(faceIDs);
if (faceIDs.isEmpty || embeddings.isEmpty) {
_logger.severe(
'No faces or embeddings found for person ${p.remoteID} that match the given files',
);
return;
}
final fileIDToCreationTime =
await FilesDB.instance.getFileIDToCreationTime();
@@ -205,6 +212,13 @@ class ClusterFeedbackService {
final embeddings =
await FaceMLDataDB.instance.getFaceEmbeddingMapForFaces(faceIDs);
if (faceIDs.isEmpty || embeddings.isEmpty) {
_logger.severe(
'No faces or embeddings found for cluster $clusterID that match the given files',
);
return;
}
final fileIDToCreationTime =
await FilesDB.instance.getFileIDToCreationTime();