Parcourir la source

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.
ᴜɴᴋɴᴡᴏɴ il y a 4 ans
Parent
commit
7efa946b02
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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
 	}