mirror of
https://github.com/gogs/gogs.git
synced 2025-05-23 07:50:23 +00:00
git: explicitly disable debug in prod mode (#5959)
After first time running the application and went through the installation, the flag was always true until restarted.
This commit is contained in:
parent
fe7b094b9e
commit
7efa946b02
@ -41,6 +41,7 @@ func checkRunMode() {
|
|||||||
if conf.IsProdMode() {
|
if conf.IsProdMode() {
|
||||||
macaron.Env = macaron.PROD
|
macaron.Env = macaron.PROD
|
||||||
macaron.ColorLog = false
|
macaron.ColorLog = false
|
||||||
|
git.Debug = false
|
||||||
} else {
|
} else {
|
||||||
git.Debug = true
|
git.Debug = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user