core: fix idle CPU use in file logger (#31478)
This commit is contained in:
parent
5372c63c7c
commit
2ababc87da
@ -47,7 +47,7 @@ function format(input: unknown) {
|
||||
}
|
||||
|
||||
export function fileLogger(file = path.join(Global.Path.log, "opencode.log"), id: string = runID) {
|
||||
return Logger.toFile(formatter(id), file, { flag: "a", batchWindow: 0 })
|
||||
return Logger.toFile(formatter(id), file, { flag: "a" })
|
||||
}
|
||||
|
||||
const stderrLogger = Logger.make((options) => process.stderr.write(formatter().log(options) + "\n"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user