提交 420b61ab 编写于 作者: U UlricQin

use release mode in collector

上级 dbd81eed
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册