Unverified Commit 75f73fe9 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update build worker warning to use debug (#60847)

Since we are enabling `webpackBuildWorker` by default now we should move
this warning to debug since it can be confusing without additional
context.

x-ref: [slack
thread](https://vercel.slack.com/archives/C04KC8A53T7/p1705612748627769?thread_ts=1705599489.811039&cid=C04KC8A53T7)

Closes NEXT-2158
parent 16e7a5bd
...@@ -58,7 +58,7 @@ async function webpackBuildWithWorker( ...@@ -58,7 +58,7 @@ async function webpackBuildWithWorker(
}[]) { }[]) {
worker._child.on('exit', (code, signal) => { worker._child.on('exit', (code, signal) => {
if (code || (signal && signal !== 'SIGINT')) { if (code || (signal && signal !== 'SIGINT')) {
console.error( debug(
`Compiler ${compilerName} unexpectedly exited with code: ${code} and signal: ${signal}` `Compiler ${compilerName} unexpectedly exited with code: ${code} and signal: ${signal}`
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment