go frame框架,关闭启动时打印的路由列表已经debug信息

import (
        "github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/os/glog"
)

func main() {
	glog.SetDebug(false) // 关闭debug信息
        s := g.Server()
	s.SetDumpRouterMap(false) // 关闭打印的路由列表

}        

  

猜你喜欢

转载自www.cnblogs.com/alpiny/p/12037749.html