[mob][photos] Logs
This commit is contained in:
parent
c4a6011621
commit
63653411b8
1 changed files with 7 additions and 1 deletions
|
@ -109,6 +109,7 @@ class FaceMlService {
|
|||
return;
|
||||
}
|
||||
_logger.info("init called");
|
||||
_logStatus();
|
||||
await _computer.compute(initOrtEnv);
|
||||
try {
|
||||
await FaceDetectionService.instance.init();
|
||||
|
@ -517,7 +518,8 @@ class FaceMlService {
|
|||
for (final smallestChunk in smallerChunks) {
|
||||
if (!await canUseHighBandwidth()) {
|
||||
_logger.info(
|
||||
'stopping indexing because user is not connected to wifi',);
|
||||
'stopping indexing because user is not connected to wifi',
|
||||
);
|
||||
break outerLoop;
|
||||
}
|
||||
for (final enteFile in smallestChunk) {
|
||||
|
@ -761,6 +763,9 @@ class FaceMlService {
|
|||
// disposeImageIsolateAfterUse: false,
|
||||
);
|
||||
if (result == null) {
|
||||
_logger.severe(
|
||||
"Failed to analyze image with uploadedFileID: ${enteFile.uploadedFileID}",
|
||||
);
|
||||
return false;
|
||||
}
|
||||
final List<Face> faces = [];
|
||||
|
@ -880,6 +885,7 @@ class FaceMlService {
|
|||
),
|
||||
) as String?;
|
||||
if (resultJsonString == null) {
|
||||
_logger.severe('Analyzing image in isolate is giving back null');
|
||||
return null;
|
||||
}
|
||||
result = FaceMlResult.fromJsonString(resultJsonString);
|
||||
|
|
Loading…
Add table
Reference in a new issue