From 01c7a427873f5c4fc2efcfbda8a30ba7afaef019 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 24 Feb 2025 14:51:20 +0000 Subject: [PATCH] Merge pull request #23835 from overleaf/bg-backup-show-errors add error cause logging for missing chunks and blobs in backup comparison GitOrigin-RevId: 9a1bf84b64621add71fb1d1e0cb013598b226bc8 --- services/history-v1/storage/scripts/backup.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/history-v1/storage/scripts/backup.mjs b/services/history-v1/storage/scripts/backup.mjs index d704eff779..1aebebbe68 100644 --- a/services/history-v1/storage/scripts/backup.mjs +++ b/services/history-v1/storage/scripts/backup.mjs @@ -763,7 +763,7 @@ async function compareBackups(projectId, options) { } } catch (err) { if (err instanceof NotFoundError) { - console.log(`✗ Chunk ${chunk.id} not found in backup`) + console.log(`✗ Chunk ${chunk.id} not found in backup`, err.cause) totalChunksNotFound++ errors.push({ chunkId: chunk.id, error: `Chunk not found` }) } else { @@ -809,7 +809,7 @@ async function compareBackups(projectId, options) { } } catch (err) { if (err instanceof NotFoundError) { - console.log(` ✗ Blob ${blob.hash} not found in backup`) + console.log(` ✗ Blob ${blob.hash} not found in backup`, err.cause) totalBlobsNotFound++ errors.push({ chunkId: chunk.id,