mirror of
https://github.com/denoland/deno.git
synced 2025-01-18 03:44:05 -05:00
fix(runtime): JS debug log to stderr (#19217)
Debug logs should all go to stderr.
This commit is contained in:
parent
5c349039b8
commit
ffa020f43a
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function log(...args) {
|
||||||
if (logDebug) {
|
if (logDebug) {
|
||||||
// if we destructure `console` off `globalThis` too early, we don't bind to
|
// if we destructure `console` off `globalThis` too early, we don't bind to
|
||||||
// the right console, therefore we don't log anything out.
|
// the right console, therefore we don't log anything out.
|
||||||
globalThis.console.log(
|
globalThis.console.error(
|
||||||
`DEBUG ${logSource} -`,
|
`DEBUG ${logSource} -`,
|
||||||
...new SafeArrayIterator(args),
|
...new SafeArrayIterator(args),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue