Explorar o código

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.
ᴜɴᴋɴᴡᴏɴ %!s(int64=4) %!d(string=hai) anos
pai
achega
7efa946b02
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      internal/route/install.go

+ 1 - 0
internal/route/install.go

@@ -41,6 +41,7 @@ func checkRunMode() {
 	if conf.IsProdMode() {
 		macaron.Env = macaron.PROD
 		macaron.ColorLog = false
+		git.Debug = false
 	} else {
 		git.Debug = true
 	}