Skip to content

Commit 6b8fc96

Browse files
committed
minor updates
1 parent d494d4e commit 6b8fc96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebase-ml-modeldownloader/src/main/java/com/google/firebase/ml/modeldownloader/internal/ModelFileDownloadService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private synchronized ParcelFileDescriptor getDownloadedFile(Long downloadingId)
300300
fileDescriptor = downloadManager.openDownloadedFile(downloadingId);
301301
} catch (FileNotFoundException e) {
302302
// todo replace with FirebaseMlException
303-
Log.d(TAG, "Downloaded file is not found" + e);
303+
Log.d(TAG, "Downloaded file is not found: " + e);
304304
}
305305
return fileDescriptor;
306306
}
@@ -341,6 +341,7 @@ public File loadNewlyDownloadedModelFile(CustomModel model) throws FirebaseMlExc
341341

342342
Integer statusCode = getDownloadingModelStatusCode(downloadingId);
343343
if (statusCode == null) {
344+
Log.d(TAG, "Download failed - no download status available.");
344345
// No status code, it may mean no such download or no download manager.
345346
removeOrCancelDownload(model.getName(), model.getDownloadId());
346347
return null;
@@ -360,6 +361,7 @@ public File loadNewlyDownloadedModelFile(CustomModel model) throws FirebaseMlExc
360361
// Try to move it to destination folder.
361362
File newModelFile;
362363
try {
364+
// TODO add logging
363365
newModelFile = fileManager.moveModelToDestinationFolder(model, fileDescriptor);
364366
} finally {
365367
removeOrCancelDownload(model.getName(), model.getDownloadId());

0 commit comments

Comments
 (0)