From 7efa946b02e14a88e612ddcbfa7ee42a16df55b9 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Mon, 2 Mar 2020 22:09:09 +0800 Subject: 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(+) (limited to 'internal/route/install.go') diff --git a/internal/route/install.go b/internal/route/install.go index e3d0555b..fa969f37 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 } -- cgit v1.2.3