mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Always log basic info on empty result
This commit is contained in:
parent
1e9a014ce7
commit
db8e203c36
@ -471,13 +471,16 @@ class MLService {
|
||||
return actuallyRanML;
|
||||
} catch (e, s) {
|
||||
final String errorString = e.toString();
|
||||
final String format = instruction.file.displayName.split('.').last;
|
||||
final int? size = instruction.file.fileSize;
|
||||
final fileType = instruction.file.fileType;
|
||||
final bool acceptedIssue =
|
||||
errorString.contains('ThumbnailRetrievalException') ||
|
||||
errorString.contains('InvalidImageFormatException') ||
|
||||
errorString.contains('FileSizeTooLargeForMobileIndexing');
|
||||
if (acceptedIssue) {
|
||||
_logger.severe(
|
||||
'$errorString with ID ${instruction.file.uploadedFileID}, storing empty results so indexing does not get stuck',
|
||||
'$errorString with ID ${instruction.file.uploadedFileID} (format $format, type $fileType, size $size), storing empty results so indexing does not get stuck',
|
||||
e,
|
||||
s,
|
||||
);
|
||||
@ -490,7 +493,7 @@ class MLService {
|
||||
return true;
|
||||
}
|
||||
_logger.severe(
|
||||
"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.",
|
||||
"Failed to index file with ID: ${instruction.file.uploadedFileID} (format $format, type $fileType, size $size). Not storing any results locally, which means it will be automatically retried later.",
|
||||
e,
|
||||
s,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user