Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

Remove URL truncation from download log and add failure logging

Alcahest5c1ad2eaebd4
diff --git a/src/helpers/downloadUtils.js b/src/helpers/downloadUtils.js
index 61957ff96..e249100da 100644
--- a/src/helpers/downloadUtils.js
+++ b/src/helpers/downloadUtils.js
@@ -255,7 +255,7 @@ async function downloadFile(url, destPath, options = {}) {
const tempPath = `${destPath}.tmp`;
- debugLogger.info("Download starting", { url: url.substring(0, 80), destPath });
+ debugLogger.info("Download starting", { url, destPath });
let startOffset = 0;
try {
@@ -333,6 +333,11 @@ async function downloadFile(url, destPath, options = {}) {
}
}
+ debugLogger.error("Download failed after all retries", {
+ url,
+ error: lastError?.message,
+ code: lastError?.code,
+ });
await fsPromises.unlink(tempPath).catch(() => {});
throw lastError;
}