use release mode in collector

This commit is contained in:
UlricQin 2020-07-06 14:46:39 +08:00
parent dbd81eed2b
commit 420b61ab52
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ func main() {
go worker.PusherStart()
go worker.Zeroize()
if cfg.Logger.Level != "DEBUG" {
gin.SetMode(gin.ReleaseMode)
}
r := gin.New()
routes.Config(r)
http.Start(r, "collector", cfg.Logger.Level)