2
0
Aiden Cline 4 сар өмнө
parent
commit
5b21334fdd

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

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