This commit is contained in:
crusader 2018-05-03 19:17:44 +09:00
parent 973fb2cb53
commit 35e8be57fd

View File

@ -66,6 +66,7 @@ func (s *Server) ListenAndServe() error {
}
if err = s.ServerHandler.Init(s.ctx); nil != err {
logging.Logger().Errorf("%s Init has been failed %v", s.logHeader(), err)
return err
}
@ -119,6 +120,7 @@ func (s *Server) handleServer(listener net.Listener) error {
}()
if err = s.ServerHandler.OnStart(s.ctx); nil != err {
logging.Logger().Errorf("%s OnStart has been failed %v", s.logHeader(), err)
return err
}