Skip to content

Commit

Permalink
always enable pprof handler for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Mar 11, 2024
1 parent 6e03592 commit 004755b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/coordinator/web/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 004755b

Please sign in to comment.