From 7efa946b02e14a88e612ddcbfa7ee42a16df55b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=9C=C9=B4=E1=B4=8B=C9=B4=E1=B4=A1=E1=B4=8F=C9=B4?= Date: Mon, 2 Mar 2020 22:09:09 +0800 Subject: [PATCH] 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. --- internal/route/install.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/route/install.go b/internal/route/install.go index e3d0555bc..fa969f379 100644 --- a/internal/route/install.go +++ b/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 }