add debug info for ghttp.Server

This commit is contained in:
John
2019-10-29 19:59:24 +08:00
parent 1ab7f00b91
commit 0dde8c735e
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ branches:
- staging
env:
- GF_DEV=1
- GO111MODULE=on
services:

View File

@ -9,6 +9,7 @@ package ghttp
import (
"encoding/json"
"fmt"
"github.com/gogf/gf/internal/intlog"
"strings"
"github.com/gogf/gf/container/glist"
@ -30,6 +31,7 @@ func (s *Server) getHandlersWithCache(r *Request) (parsedItems []*handlerParsedI
if parsedItems != nil {
return &handlerCacheItem{parsedItems, hasHook, hasServe}
}
intlog.Printf("cannot find HTTP handler for: %s, %s, %s, %v", r.Method, r.URL.Path, r.GetHost(), s.serveTree)
return nil
}, s.config.RouterCacheExpire*1000)
if value != nil {