chore(mobile): add log to get file name for corrupted asset (#8527)

* chore(mobile): add log to get file name for corrupted asset

* add date
This commit is contained in:
Alex 2024-04-04 21:28:05 -05:00 committed by GitHub
parent 19fafd8c10
commit ec7015be88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 15 deletions

View file

@ -56,8 +56,16 @@ class HashService {
}
final file = await assetEntities[i].originFile;
if (file == null) {
final fileName = await assetEntities[i].titleAsync.catchError((error) {
_log.warning(
"Failed to get title for asset ${assetEntities[i].id}",
);
return "";
});
_log.warning(
"Failed to get file for asset ${assetEntities[i].id}, skipping",
"Failed to get file for asset ${assetEntities[i].id}, name: $fileName, created on: ${assetEntities[i].createDateTime}, skipping",
);
continue;
}