aboutsummaryrefslogtreecommitdiff
path: root/internal/route/install.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-02 22:09:09 +0800
committerGitHub <noreply@github.com>2020-03-02 22:09:09 +0800
commit7efa946b02e14a88e612ddcbfa7ee42a16df55b9 (patch)
tree0cb477e99ed0d51b8006746b840c9475f1edacd9 /internal/route/install.go
parentfe7b094b9ef242820b44ffd17bbbde5a3530e944 (diff)
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.
Diffstat (limited to 'internal/route/install.go')
-rw-r--r--internal/route/install.go1
1 files changed, 1 insertions, 0 deletions
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
}