mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 01:27:17 +00:00
[mob][photos] More logs
This commit is contained in:
@@ -47,6 +47,7 @@ Future<Uint8List?> getThumbnail(EnteFile file) async {
|
||||
Future<File?> getThumbnailForUploadedFile(EnteFile file) async {
|
||||
final cachedThumbnail = cachedThumbnailPath(file);
|
||||
if (await cachedThumbnail.exists()) {
|
||||
_logger.info("Thumbnail already exists for ${file.uploadedFileID}");
|
||||
return cachedThumbnail;
|
||||
}
|
||||
final thumbnail = await getThumbnail(file);
|
||||
@@ -55,8 +56,10 @@ Future<File?> getThumbnailForUploadedFile(EnteFile file) async {
|
||||
if (!await cachedThumbnail.exists()) {
|
||||
await cachedThumbnail.writeAsBytes(thumbnail, flush: true);
|
||||
}
|
||||
_logger.info("Thumbnail obtained for ${file.uploadedFileID}");
|
||||
return cachedThumbnail;
|
||||
}
|
||||
_logger.severe("Failed to get thumbnail for ${file.uploadedFileID}");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user