From 004755b6cc1dad3d2c9bbe7be2e5cb9113187d58 Mon Sep 17 00:00:00 2001 From: pk910 Date: Mon, 11 Mar 2024 09:22:44 +0100 Subject: [PATCH] always enable pprof handler for debugging --- pkg/coordinator/web/server/server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/coordinator/web/server/server.go b/pkg/coordinator/web/server/server.go index 02e9938..d8824d7 100644 --- a/pkg/coordinator/web/server/server.go +++ b/pkg/coordinator/web/server/server.go @@ -101,10 +101,10 @@ func (ws *WebServer) ConfigureRoutes(config *types.WebConfig, logger logrus.Fiel } if config.Frontend != nil { - if config.Frontend.Pprof { - // add pprof handler - ws.router.PathPrefix("/debug/pprof/").Handler(http.DefaultServeMux) - } + // if config.Frontend.Pprof { + // add pprof handler + ws.router.PathPrefix("/debug/pprof/").Handler(http.DefaultServeMux) + // } if config.Frontend.Enabled { frontendHandler := handlers.NewFrontendHandler(coordinator)