diff --git a/Gopkg.lock b/Gopkg.lock index 487018d..48b78c9 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -11,13 +11,13 @@ branch = "master" name = "git.loafle.net/overflow/log-go" packages = ["."] - revision = "93f396a4335da70aac4dfa146bebba323424b157" + revision = "db46df21338e4bf16f20bfe3bf6a4ea5aa222fc8" [[projects]] branch = "master" name = "git.loafle.net/overflow/util-go" packages = ["ctx"] - revision = "c6e5aef1a08d21290038e1dfd4d532d1770fce04" + revision = "01cc315e25b38331c0a366d8025600ed4e297e8e" [[projects]] name = "github.com/BurntSushi/toml" @@ -91,6 +91,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "5a46d6beb0750003f59e9f3c34fcaedb4ae836d2a8a46d111ea62059d4d08480" + inputs-digest = "4bb51631715d15c06b7ed024bca6e2d3bc3b6aea3a8f3b69802d87e3a78d20f3" solver-name = "gps-cdcl" solver-version = 1 diff --git a/socket/web/server.go b/socket/web/server.go index fd13ec8..9fafd77 100644 --- a/socket/web/server.go +++ b/socket/web/server.go @@ -67,7 +67,7 @@ func (s *Server) ListenAndServe() error { } if err = s.ServerHandler.Init(s.ctx); nil != err { - olog.Logger().Errorf("%s Init has been failed %v", s.logHeader(), err) + olog.Logger().Error(fmt.Sprintf("%s Init has been failed %v", s.logHeader(), err)) return err } @@ -115,13 +115,13 @@ func (s *Server) handleServer(listener net.Listener) error { } s.ServerHandler.OnStop(s.ctx) - olog.Logger().Infof("%s Stopped", s.logHeader()) + olog.Logger().Info(fmt.Sprintf("%s Stopped", s.logHeader())) s.stopWg.Done() }() if err = s.ServerHandler.OnStart(s.ctx); nil != err { - olog.Logger().Errorf("%s OnStart has been failed %v", s.logHeader(), err) + olog.Logger().Error(fmt.Sprintf("%s OnStart has been failed %v", s.logHeader(), err)) return err } @@ -136,7 +136,7 @@ func (s *Server) handleServer(listener net.Listener) error { hsCloseChan <- nil }() - olog.Logger().Infof("%s Started", s.logHeader()) + olog.Logger().Info(fmt.Sprintf("%s Started", s.logHeader())) select { case err, _ := <-hsCloseChan: @@ -162,7 +162,7 @@ func (s *Server) httpHandler(ctx *fasthttp.RequestCtx) { if 0 < s.ServerHandler.GetConcurrency() { sz := s.srw.ConnectionSize() if sz >= s.ServerHandler.GetConcurrency() { - olog.Logger().Warnf("%s max connections size %d, refuse", s.logHeader(), sz) + olog.Logger().Warn(fmt.Sprintf("%s max connections size %d, refuse", s.logHeader(), sz)) s.onError(ctx, fasthttp.StatusServiceUnavailable, err) return }