From 186ec6b58b0e6cd74a00f72c3bf2d7e1fe1941aa Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Tue, 11 Jun 2024 10:30:56 -0700 Subject: [PATCH] Log stdio for pull-turbo-cache script (#66759) Gives us more context when this fails as it is here https://github.com/vercel/next.js/actions/runs/9469195858/job/26087290365#step:15:23 --- scripts/pull-turbo-cache.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/pull-turbo-cache.js b/scripts/pull-turbo-cache.js index fa7e9a06e6f28..9a49d845956c6 100644 --- a/scripts/pull-turbo-cache.js +++ b/scripts/pull-turbo-cache.js @@ -17,7 +17,12 @@ const { spawn } = require('child_process') } ) + child.stderr.on('data', (data) => { + process.stderr.write(data) + }) + child.stdout.on('data', (data) => { + process.stdout.write(data) turboResult += data.toString() })