Add debug option to serv to help debug problems (#9492)
* Add debug option to serv to help debug problems * fixup! Add debug option to serv to help debug problems
This commit is contained in:
parent
8b2f29c0d2
commit
3e166bd055
3 changed files with 15 additions and 7 deletions
|
@ -65,7 +65,7 @@ Gitea or set your environment appropriately.`, "")
|
|||
}
|
||||
}
|
||||
|
||||
setup("hooks/pre-receive.log")
|
||||
setup("hooks/pre-receive.log", false)
|
||||
|
||||
// the environment setted on serv command
|
||||
isWiki := (os.Getenv(models.EnvRepoIsWiki) == "true")
|
||||
|
@ -131,7 +131,7 @@ Gitea or set your environment appropriately.`, "")
|
|||
}
|
||||
}
|
||||
|
||||
setup("hooks/update.log")
|
||||
setup("hooks/update.log", false)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ Gitea or set your environment appropriately.`, "")
|
|||
}
|
||||
}
|
||||
|
||||
setup("hooks/post-receive.log")
|
||||
setup("hooks/post-receive.log", false)
|
||||
|
||||
// the environment setted on serv command
|
||||
repoUser := os.Getenv(models.EnvRepoUsername)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue