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
ᴜɴᴋɴᴡᴏɴ 2020-03-02 22:09:09 +08:00 committed by GitHub
parent fe7b094b9e
commit 7efa946b02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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