Skip to content

Commit

Permalink
Only create pprof files for gitea serv if explicitly asked for (go-gi…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath authored and Stelios Malathouras committed Mar 28, 2022
1 parent 7b4bc18 commit cde898d
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 cde898d

Please sign in to comment.