Parcourir la source

Capture more logging information for output.zip errors

GitOrigin-RevId: a2f15d05100dfdba06778a1a795c8eabefd2666d
andrew rumble il y a 1 an
Parent
commit
bb12dd33ee
1 fichiers modifiés avec 11 ajouts et 1 suppressions
  1. 11 1
      services/clsi/app/js/OutputFileArchiveManager.js

+ 11 - 1
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 = []