fix(cli): exclude /global/health from request logging
Health check endpoints generate high-volume, low-value log entries. Add /global/health to the skipLogging set alongside /log and /telemetry/capture to reduce log noise.
This commit is contained in:
@@ -104,7 +104,8 @@ export namespace Server {
|
||||
// kilocode_change start
|
||||
// kilocode change add telemetry because it is high volume
|
||||
// add early return to prevent logging timing
|
||||
const skipLogging = c.req.path === "/log" || c.req.path === "/telemetry/capture"
|
||||
const skipLogging =
|
||||
c.req.path === "/log" || c.req.path === "/telemetry/capture" || c.req.path === "/global/health"
|
||||
if (skipLogging) {
|
||||
await next()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user