Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
don't log monitoring routes
Dane Schneider119b8811f0b5
diff --git a/app/server/setup/setup.go b/app/server/setup/setup.goindex 7e6e5409..2050a896 100644--- a/app/server/setup/setup.go+++ b/app/server/setup/setup.go@@ -48,6 +48,11 @@ func RegisterShutdownHook(hook func()) {func loggingMiddleware(next http.Handler) http.Handler {return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {+ // Skip logging for monitoring endpoints+ if r.URL.Path == "/health" || r.URL.Path == "/version" {+ next.ServeHTTP(w, r)+ return+ }start := time.Now()log.Printf("\n\nRequest: %s %s\n\n", r.Method, r.URL.Path)