Browse Source

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

Shantur Rathore 2 months ago
parent
commit
755a79cd8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/opencode/src/util/log.ts

+ 1 - 1
packages/opencode/src/util/log.ts

@@ -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