Revert "Add default redirect for profiling when enabled."

This reverts commit cc6cfdad9e.
This commit is contained in:
Dave Collins 2013-10-23 10:25:09 -05:00
parent cc6cfdad9e
commit 8970d4bf99

View file

@ -48,9 +48,6 @@ func btcdMain() error {
go func() {
listenAddr := net.JoinHostPort("", cfg.Profile)
log.Infof("Profile server listening on %s", listenAddr)
profileRedirect := http.RedirectHandler("/debug/pprof",
http.StatusSeeOther)
http.Handle("/", profileRedirect)
log.Errorf("%v", http.ListenAndServe(listenAddr, nil))
}()
}