e07d780d by astaxie

update the router info

1 parent e5663226
...@@ -770,7 +770,11 @@ Admin: ...@@ -770,7 +770,11 @@ Admin:
770 if RunMode == "dev" { 770 if RunMode == "dev" {
771 var devinfo string 771 var devinfo string
772 if findrouter { 772 if findrouter {
773 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s | % -40s |", r.Method, r.URL.Path, timeend.String(), "match", routerInfo.pattern) 773 if routerInfo != nil {
774 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s | % -40s |", r.Method, r.URL.Path, timeend.String(), "match", routerInfo.pattern)
775 } else {
776 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "match")
777 }
774 } else { 778 } else {
775 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch") 779 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch")
776 } 780 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!