mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
ghttp.Server启动失败时增加报错提醒,完善glog backtrace信息,增加g.Map类型
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user