Revert "Add default redirect for profiling when enabled."
This reverts commit cc6cfdad9e
.
This commit is contained in:
parent
cc6cfdad9e
commit
8970d4bf99
1 changed files with 0 additions and 3 deletions
3
btcd.go
3
btcd.go
|
@ -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))
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue