mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 12:16:17 +01:00
Only create pprof files for gitea serv if explicitly asked for (#18068)
This commit is contained in:
parent
62dcf1a6fb
commit
d097fd6be6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue