aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-07-24 01:33:55 +0800
committerGitHub <noreply@github.com>2022-07-24 01:33:55 +0800
commit91f1c285a10f32f7738dc408d22d3031c4af8500 (patch)
tree2b0692ee4e785e33db835cea37a9a785a9e36b5c /cmd
parent3310dd1d197495fbfa2d7ee490e19e6d08e1d30f (diff)
downloadgitea-91f1c285a10f32f7738dc408d22d3031c4af8500.tar.gz
gitea-91f1c285a10f32f7738dc408d22d3031c4af8500.zip
Improve pprof doc (#20463)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 43bb0ada91..3bc61b0443 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -148,8 +148,9 @@ func runWeb(ctx *cli.Context) error {
go func() {
http.DefaultServeMux.Handle("/debug/fgprof", fgprof.Handler())
_, _, finished := process.GetManager().AddTypedContext(context.Background(), "Web: PProf Server", process.SystemProcessType, true)
+ // The pprof server is for debug purpose only, it shouldn't be exposed on public network. At the moment it's not worth to introduce a configurable option for it.
log.Info("Starting pprof server on localhost:6060")
- log.Info("%v", http.ListenAndServe("localhost:6060", nil))
+ log.Info("Stopped pprof server: %v", http.ListenAndServe("localhost:6060", nil))
finished()
}()
}