summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-12-22 16:48:12 +0000
committerGitHub <noreply@github.com>2021-12-22 11:48:12 -0500
commitd097fd6be687e7f647e8679a0586d9a1a7bcf2bd (patch)
tree3ccef32d61a0696f14db653c18bc164e80c13a9f /cmd
parent62dcf1a6fb8f4cf935e7ca288406402d243507c0 (diff)
downloadgitea-d097fd6be687e7f647e8679a0586d9a1a7bcf2bd.tar.gz
gitea-d097fd6be687e7f647e8679a0586d9a1a7bcf2bd.zip
Only create pprof files for gitea serv if explicitly asked for (#18068)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/serv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index c3c9eff195..bb600c8d50 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -191,7 +191,7 @@ func runServ(c *cli.Context) error {
return fail("Invalid repo name", "Invalid repo name: %s", reponame)
}
- if setting.EnablePprof || c.Bool("enable-pprof") {
+ if c.Bool("enable-pprof") {
if err := os.MkdirAll(setting.PprofDataPath, os.ModePerm); err != nil {
return fail("Error while trying to create PPROF_DATA_PATH", "Error while trying to create PPROF_DATA_PATH: %v", err)
}