summaryrefslogtreecommitdiffhomepage
path: root/js/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/util')
-rw-r--r--js/src/util/log.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/util/log.ts b/js/src/util/log.ts
index 8d316e04e..c43514ef6 100644
--- a/js/src/util/log.ts
+++ b/js/src/util/log.ts
@@ -14,10 +14,10 @@ export namespace Log {
export function file(directory: string) {
const out = Bun.file(
path.join(AppPath.data(directory), "opencode.out.log"),
- );
+ ).writer();
const err = Bun.file(
path.join(AppPath.data(directory), "opencode.err.log"),
- );
+ ).writer();
write["out"] = (msg) => out.write(msg);
write["err"] = (msg) => err.write(msg);
}