Capture more logging information for output.zip errors

GitOrigin-RevId: a2f15d05100dfdba06778a1a795c8eabefd2666d
This commit is contained in:
andrew rumble 2024-09-04 12:24:05 +01:00 committed by Copybot
parent d4911ea246
commit bb12dd33ee

View file

@ -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 = []