Browse 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.
ᴜɴᴋɴᴡᴏɴ 4 years ago
parent
commit
7efa946b02
1 changed files with 1 additions and 0 deletions
  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
 	}