Skip to content

Commit

Permalink
Only create pprof files for gitea serv if explicitly asked for (#18068)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Dec 22, 2021
1 parent 62dcf1a commit d097fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/serv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d097fd6

Please sign in to comment.