From 2ee7df1d31fa71fdbf2fa61b5a4fe9c861146818 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 2 Jan 2023 12:45:56 +0000 Subject: [PATCH] gin debug/release option --- main.go | 3 +++ todo.md | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index e0dff78..b6db17e 100644 --- a/main.go +++ b/main.go @@ -53,6 +53,9 @@ func newWeb() *Web { func (web *Web) init() { web.urlCache = make(map[string]string, 5) + if !viper.GetBool("gin.debug") { + gin.SetMode(gin.ReleaseMode) + } web.validateProxyURL() web.initDB() web.initRouter() diff --git a/todo.md b/todo.md index 06b6fd2..d1359c4 100644 --- a/todo.md +++ b/todo.md @@ -9,5 +9,4 @@ - postgresql+apprise+browserless - add kube yaml example? - organize docs? -- disable gin debug - add favicon \ No newline at end of file