From 82cce14ef811d80cceb2c7478de8a7420cd6b303 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 17 Dec 2021 01:33:26 +0800 Subject: [PATCH] feat: no log --- server/service.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/service.go b/server/service.go index a3d51a9..f432de4 100644 --- a/server/service.go +++ b/server/service.go @@ -28,9 +28,10 @@ func New(name string) *Service { gin.SetMode(gin.ReleaseMode) } srv := &Service{ - Name: name, - Server: gin.New(), - Addr: fmt.Sprintf("%s:%s", viper.GetString("server.host"), viper.GetString("server.port")), + Name: name, + Server: gin.New(), + SkipLog: DefaultSkipLog, + Addr: fmt.Sprintf("%s:%s", viper.GetString("server.host"), viper.GetString("server.port")), } srv.Server.Use(srv.Default) srv.API = srv.Server.Group("/api")