fix(runtime): JS debug log to stderr (#19217)

Debug logs should all go to stderr.
This commit is contained in:
David Sherret 2023-05-22 14:17:31 -04:00 committed by GitHub
parent 5c349039b8
commit ffa020f43a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ function log(...args) {
if (logDebug) {
// if we destructure `console` off `globalThis` too early, we don't bind to
// the right console, therefore we don't log anything out.
globalThis.console.log(
globalThis.console.error(
`DEBUG ${logSource} -`,
...new SafeArrayIterator(args),
);