[mob][photos] Logs

This commit is contained in:
laurenspriem
2024-08-27 10:23:15 +02:00
parent d299f94518
commit 7718da93a5
2 changed files with 2 additions and 2 deletions

View File

@@ -495,7 +495,7 @@ class MLService {
return true;
}
_logger.severe(
"Failed to analyze using FaceML for image with ID: ${instruction.file.uploadedFileID}. Not storing any results locally, which means it will be automatically retried later.",
"Failed to analyze using FaceML for image with ID: ${instruction.file.uploadedFileID} and format ${instruction.file.displayName.split('.').last} (${instruction.file.fileType}). Not storing any results locally, which means it will be automatically retried later.",
e,
s,
);

View File

@@ -330,7 +330,7 @@ Future<String> getImagePathForML(EnteFile enteFile) async {
if (imagePath == null) {
_logger.severe(
"Failed to get any data for enteFile with uploadedFileID ${enteFile.uploadedFileID} since its file path is null (isVideo: $isVideo)",
"Failed to get any data for enteFile with uploadedFileID ${enteFile.uploadedFileID} and format ${enteFile.displayName.split('.').last} and size ${enteFile.fileSize} since its file path is null (isVideo: $isVideo)",
);
throw CouldNotRetrieveAnyFileData();
}