use release mode in collector
This commit is contained in:
parent
dbd81eed2b
commit
420b61ab52
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue