-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Labels
bugSomething isn't workingSomething isn't workingconfirmed bugWe can reproduce this issueWe can reproduce this issueconsoleRelated to console apisRelated to console apisgood first issueSomething that would be good for new contributorsSomething that would be good for new contributors
Description
What version of Bun is running?
1.2.15-canary.63+df017990a
What platform is your computer?
Darwin 24.4.0 arm64 arm
What steps can reproduce the bug?
Run trace.js and observe what is printed to stdout and what to stderr:
console.trace("hello");What is the expected behavior?
Trace is printed to stderr (observed because redirecting stdout has no effect):
$ node trace.js >/dev/null
Trace: hello
at Object.<anonymous> (/Users/ben/code/bun/workers/trace.js:1:9)
at Module._compile (node:internal/modules/cjs/loader:1723:14)
at Object..js (node:internal/modules/cjs/loader:1888:10)
at Module.load (node:internal/modules/cjs/loader:1458:32)
at Function._load (node:internal/modules/cjs/loader:1275:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:151:5)
at node:internal/main/run_main_module:33:47
What do you see instead?
Trace is printed to stdout:
$ bun trace.js >/dev/null
$ # no output
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingconfirmed bugWe can reproduce this issueWe can reproduce this issueconsoleRelated to console apisRelated to console apisgood first issueSomething that would be good for new contributorsSomething that would be good for new contributors