Skip to content

Commit cde898d

Browse files
zeripathStelios Malathouras
authored and
Stelios Malathouras
committedMar 28, 2022
Only create pprof files for gitea serv if explicitly asked for (go-gitea#18068)
1 parent 7b4bc18 commit cde898d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cmd/serv.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func runServ(c *cli.Context) error {
191191
return fail("Invalid repo name", "Invalid repo name: %s", reponame)
192192
}
193193

194-
if setting.EnablePprof || c.Bool("enable-pprof") {
194+
if c.Bool("enable-pprof") {
195195
if err := os.MkdirAll(setting.PprofDataPath, os.ModePerm); err != nil {
196196
return fail("Error while trying to create PPROF_DATA_PATH", "Error while trying to create PPROF_DATA_PATH: %v", err)
197197
}

0 commit comments

Comments
 (0)