diff options
author | zeripath <art27@cantab.net> | 2021-12-22 16:48:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 11:48:12 -0500 |
commit | d097fd6be687e7f647e8679a0586d9a1a7bcf2bd (patch) | |
tree | 3ccef32d61a0696f14db653c18bc164e80c13a9f /cmd | |
parent | 62dcf1a6fb8f4cf935e7ca288406402d243507c0 (diff) | |
download | gitea-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.go | 2 |
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) } |