Removes debug from golang (#1875)

This commit is contained in:
Amir Raminfar
2022-09-12 09:40:55 -07:00
committed by GitHub
parent 25daf6b502
commit 2b82a0816c
2 changed files with 0 additions and 5 deletions

View File

@@ -5,7 +5,6 @@ import (
"embed"
"io/fs"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
"strings"

View File

@@ -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 {