mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add additional logging for attachment downloading
This commit is contained in:
@@ -100,8 +100,11 @@ export async function downloadAttachmentV2(
|
||||
dropNull(cdnNumber),
|
||||
options
|
||||
);
|
||||
log.info(`${logId} got download stream`);
|
||||
|
||||
const cipherTextRelativePath = await downloadToDisk({ downloadStream, size });
|
||||
log.info(`${logId} downloaded encrypted file to disk`);
|
||||
|
||||
const cipherTextAbsolutePath =
|
||||
window.Signal.Migrations.getAbsoluteAttachmentPath(cipherTextRelativePath);
|
||||
|
||||
@@ -112,6 +115,7 @@ export async function downloadAttachmentV2(
|
||||
size,
|
||||
theirDigest: Bytes.fromBase64(digest),
|
||||
});
|
||||
log.info(`${logId} successfully decrypted`);
|
||||
|
||||
safeUnlinkSync(cipherTextAbsolutePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user