Skip to content

Commit

Permalink
增加 log 信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Allenxuxu committed Nov 6, 2019
1 parent a0a812a commit b228193
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/Allenxuxu/gev/connection"
"github.com/Allenxuxu/gev/eventloop"
"github.com/Allenxuxu/gev/listener"
"github.com/Allenxuxu/gev/log"
"github.com/Allenxuxu/toolkit/sync"
"github.com/RussellLuo/timingwheel"
"golang.org/x/sys/unix"
Expand Down Expand Up @@ -113,6 +114,7 @@ func (s *Server) Start() {
}

sw.AddAndRun(s.loop.RunLoop)
log.Infof("Server start (%s)", s.opts.Address)
sw.Wait()
}

Expand All @@ -124,6 +126,7 @@ func (s *Server) Stop() {
for k := range s.workLoops {
_ = s.workLoops[k].Stop()
}
log.Info("Server stop")
}

// Options 返回 options
Expand Down

0 comments on commit b228193

Please sign in to comment.