From d097fd6be687e7f647e8679a0586d9a1a7bcf2bd Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 22 Dec 2021 16:48:12 +0000 Subject: [PATCH] Only create pprof files for gitea serv if explicitly asked for (#18068) --- cmd/serv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/serv.go b/cmd/serv.go index c3c9eff195d..bb600c8d501 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) }