From 41c1e6247067d36eec533ad4a27907e4425bbd65 Mon Sep 17 00:00:00 2001 From: Thushani Jayasekera Date: Tue, 7 Jul 2026 21:59:06 +0530 Subject: [PATCH] Remove the printStartedMarker function and its usage from the platform API server, streamlining the startup logging process. --- platform-api/internal/server/server.go | 15 --------------- portals/ai-workspace/bff/main.go | 2 -- 2 files changed, 17 deletions(-) diff --git a/platform-api/internal/server/server.go b/platform-api/internal/server/server.go index cf3498c17..3b1b53e2b 100644 --- a/platform-api/internal/server/server.go +++ b/platform-api/internal/server/server.go @@ -823,8 +823,6 @@ func (s *Server) Start(port string, certDir string) error { } s.logger.Info("Platform API started", "mode", mode) - printStartedMarker(mode) - quit := make(chan os.Signal, 1) signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM) defer signal.Stop(quit) @@ -860,19 +858,6 @@ func (s *Server) Start(port string, certDir string) error { } } -// printStartedMarker writes a large, prominent banner for humans watching -// the console, matching the gateway controller's startup banner style. It's -// purely decorative — the structured "Platform API started" slog line is the -// source of truth for log parsing. -func printStartedMarker(mode string) { - fmt.Print("\n\n" + - "========================================================================\n" + - "\n" + - " Platform API Started mode=" + mode + "\n" + - "\n" + - "========================================================================\n" + - "\n\n") -} // GetMux returns the raw ServeMux for testing purposes. func (s *Server) GetMux() *http.ServeMux { diff --git a/portals/ai-workspace/bff/main.go b/portals/ai-workspace/bff/main.go index d69ef9f1a..be93ae71e 100644 --- a/portals/ai-workspace/bff/main.go +++ b/portals/ai-workspace/bff/main.go @@ -46,10 +46,8 @@ func printStartedMarker(mode string) { fmt.Print("\n\n" + "========================================================================\n" + "\n" + - "\n" + " AI Workspace Started mode=" + mode + "\n" + "\n" + - "\n" + "========================================================================\n" + "\n\n") }