diff options
| author | Dax Raad <[email protected]> | 2025-11-05 20:00:09 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-11-05 20:00:09 -0500 |
| commit | 4e7bfaab8bac83ad0c05fdab1900b11590bc9554 (patch) | |
| tree | 0862504a91fffd294a21aaf8e33f56b4524547c6 | |
| parent | 8b26a1f9bdb61e636cd93d023bb1d17cbc505bf1 (diff) | |
| download | opencode-4e7bfaab8bac83ad0c05fdab1900b11590bc9554.tar.gz opencode-4e7bfaab8bac83ad0c05fdab1900b11590bc9554.zip | |
fix log
| -rw-r--r-- | packages/opencode/src/util/log.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/util/log.ts b/packages/opencode/src/util/log.ts index 6b31952fe..548f6b2b5 100644 --- a/packages/opencode/src/util/log.ts +++ b/packages/opencode/src/util/log.ts @@ -52,7 +52,7 @@ export namespace Log { export function file() { return logpath } - let write: (msg: string) => void + let write = process.stderr.write export async function init(options: Options) { if (options.level) level = options.level @@ -65,7 +65,7 @@ export namespace Log { const logfile = Bun.file(logpath) await fs.truncate(logpath).catch(() => {}) const writer = logfile.writer() - write = (msg) => { + write = (msg: any) => { writer.write(msg) writer.flush() return true |
