diff --git a/internal/api/server.go b/internal/api/server.go index 3aab2d17..ac57c424 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -278,10 +278,6 @@ func (s *Server) setupRoutes() { mgmt.PUT("/debug", s.mgmt.PutDebug) mgmt.PATCH("/debug", s.mgmt.PutDebug) - mgmt.GET("/force-gpt-5-codex", s.mgmt.GetForceGPT5Codex) - mgmt.PUT("/force-gpt-5-codex", s.mgmt.PutForceGPT5Codex) - mgmt.PATCH("/force-gpt-5-codex", s.mgmt.PutForceGPT5Codex) - mgmt.GET("/proxy-url", s.mgmt.GetProxyURL) mgmt.PUT("/proxy-url", s.mgmt.PutProxyURL) mgmt.PATCH("/proxy-url", s.mgmt.PutProxyURL) diff --git a/internal/logging/request_logger.go b/internal/logging/request_logger.go index 17ed7715..6c143d89 100644 --- a/internal/logging/request_logger.go +++ b/internal/logging/request_logger.go @@ -268,9 +268,10 @@ func (l *FileRequestLogger) generateFilename(url string) string { sanitized := l.sanitizeForFilename(path) // Add timestamp - timestamp := time.Now().UnixNano() + timestamp := time.Now().Format("2006-01-02T150405-.000000000") + timestamp = strings.Replace(timestamp, ".", "", -1) - return fmt.Sprintf("%s-%d.log", sanitized, timestamp) + return fmt.Sprintf("%s-%s.log", sanitized, timestamp) } // sanitizeForFilename replaces characters that are not safe for filenames.