fix: Writing to Bun.stderr causes CPU pinning to 100%. (#5396)

This commit is contained in:
Shantur Rathore 2025-12-11 19:47:59 +00:00 committed by GitHub
parent 16b7370d8c
commit 755a79cd8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ export namespace Log {
export function file() {
return logpath
}
let write = (msg: any) => Bun.stderr.write(msg)
let write = (msg: any) => process.stderr.write(msg)
export async function init(options: Options) {
if (options.level) level = options.level