mirror of https://github.com/gogs/gogs.git
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.pull/5964/head
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…
Reference in New Issue