Explorar el Código

Merge pull request #11266 from overleaf/jpa-translations-sync-debugging

[web] scripts: verbose logging in upload script

GitOrigin-RevId: dbc8793358fee63dabf1d5a9b80c3613a147a53b
Jakob Ackermann hace 3 años
padre
commit
d1c2c46224
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/web/scripts/translations/upload.js

+ 1 - 1
services/web/scripts/translations/upload.js

@@ -35,7 +35,7 @@ async function pollUploadStatus(importId) {
     await sleep(5000)
   }
   if (task.status === 'failed') {
-    console.error({ task })
+    console.error(JSON.stringify({ task }, null, 2))
     throw new Error('upload failed')
   }
 }