From ffa020f43a2a0d04fade562b2f82cd1a39913780 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 22 May 2023 14:17:31 -0400 Subject: fix(runtime): JS debug log to stderr (#19217) Debug logs should all go to stderr. --- runtime/js/06_util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/js/06_util.js b/runtime/js/06_util.js index db4564e32..e04ae7bd7 100644 --- a/runtime/js/06_util.js +++ b/runtime/js/06_util.js @@ -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), ); -- cgit v1.2.3