diff --git a/main.go b/main.go index 5c932d1b..a0d4054b 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( "embed" "io/fs" "net/http" - _ "net/http/pprof" "os" "os/signal" "strings" diff --git a/web/routes.go b/web/routes.go index 80754b81..4c2d94ee 100644 --- a/web/routes.go +++ b/web/routes.go @@ -63,10 +63,6 @@ func createRouter(h *handler) *mux.Router { s.Handle("/version", authorizationRequired(h.version)) s.HandleFunc("/healthcheck", h.healthcheck) - if log.IsLevelEnabled(log.DebugLevel) { - s.PathPrefix("/debug/pprof/").Handler(http.DefaultServeMux) - } - if base != "/" { s.PathPrefix("/").Handler(http.StripPrefix(base+"/", http.HandlerFunc(h.index))) } else {