Selaa lähdekoodia

leave a breadcrumb comment about batchWindow zero (#31508)

Sebastian 2 kuukautta sitten
vanhempi
sitoutus
7c1e61af1e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      packages/core/src/observability/logging.ts

+ 1 - 0
packages/core/src/observability/logging.ts

@@ -47,6 +47,7 @@ function format(input: unknown) {
 }
 }
 
 
 export function fileLogger(file = path.join(Global.Path.log, "opencode.log"), id: string = runID) {
 export function fileLogger(file = path.join(Global.Path.log, "opencode.log"), id: string = runID) {
+  // Do not set batchWindow to 0; it causes high idle CPU usage.
   return Logger.toFile(formatter(id), file, { flag: "a" })
   return Logger.toFile(formatter(id), file, { flag: "a" })
 }
 }