ghttp.Server启动失败时增加报错提醒,完善glog backtrace信息,增加g.Map类型

This commit is contained in:
John
2018-04-19 13:41:06 +08:00
parent 7bdb528f5d
commit b3c672b08b
4 changed files with 13 additions and 4 deletions

View File

@ -12,6 +12,7 @@ import (
"strings"
"reflect"
"net/http"
"gitee.com/johng/gf/g/os/glog"
"gitee.com/johng/gf/g/os/gcache"
"gitee.com/johng/gf/g/container/gmap"
"gitee.com/johng/gf/g/container/gtype"
@ -133,6 +134,7 @@ func (s *Server) Run() error {
s.startCloseQueueLoop()
// 执行端口监听
if err := s.server.ListenAndServe(); err != nil {
glog.Error(err)
return err
}
s.status = 1