From bb12dd33ee9fe7a37fbb16526062bf03c67d906d Mon Sep 17 00:00:00 2001 From: andrew rumble Date: Wed, 4 Sep 2024 12:24:05 +0100 Subject: [PATCH] Capture more logging information for output.zip errors GitOrigin-RevId: a2f15d05100dfdba06778a1a795c8eabefd2666d --- services/clsi/app/js/OutputFileArchiveManager.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/services/clsi/app/js/OutputFileArchiveManager.js b/services/clsi/app/js/OutputFileArchiveManager.js index cc5253ad4c..3c5a6c8197 100644 --- a/services/clsi/app/js/OutputFileArchiveManager.js +++ b/services/clsi/app/js/OutputFileArchiveManager.js @@ -36,7 +36,17 @@ module.exports = { const archive = archiver('zip') archive.on('error', err => { - logger.warn({ err }, 'error emitted when creating output files archive') + logger.warn( + { err, projectId, userId, build }, + 'error emitted when creating output files archive' + ) + }) + + archive.on('warning', err => { + logger.warn( + { err, projectId, userId, build }, + 'warning emitted when creating output files archive' + ) }) const missingFiles = []