瀏覽代碼

Capture more logging information for output.zip errors

GitOrigin-RevId: a2f15d05100dfdba06778a1a795c8eabefd2666d
andrew rumble 1 年之前
父節點
當前提交
bb12dd33ee
共有 1 個文件被更改,包括 11 次插入1 次删除
  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 = []