[mob] Logging changes

This commit is contained in:
Neeraj Gupta 2024-04-07 16:11:07 +05:30
parent b00ab0541e
commit 3d452c4e98
2 changed files with 4 additions and 2 deletions

View file

@ -80,7 +80,8 @@ Future<File?> downloadAndDecrypt(
getFileKey(file),
);
fakeProgress?.stop();
_logger.info('$logPrefix decryption completed');
_logger
.info('$logPrefix decryption completed (genID ${file.generatedID})');
} catch (e, s) {
fakeProgress?.stop();
_logger.severe("Critical: $logPrefix failed to decrypt", e, s);

View file

@ -278,7 +278,8 @@ Future<_LivePhoto?> _downloadLivePhoto(
if (imageFileCache != null && videoFileCache != null) {
return _LivePhoto(imageFileCache, videoFileCache);
} else {
debugPrint("Warning: Either image or video is missing from remoteLive");
debugPrint(
"Warning: ${file.tag} either image ${imageFileCache == null} or video ${videoFileCache == null} is missing from remoteLive");
return null;
}
}).catchError((e) {