986e91b7 by astaxie

beego: update the debug info rules

1 parent 8b8638c5
...@@ -591,6 +591,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -591,6 +591,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
591 591
592 serverStaticRouter(context) 592 serverStaticRouter(context)
593 if w.started { 593 if w.started {
594 findrouter = true
594 goto Admin 595 goto Admin
595 } 596 }
596 597
...@@ -769,9 +770,9 @@ Admin: ...@@ -769,9 +770,9 @@ Admin:
769 if RunMode == "dev" { 770 if RunMode == "dev" {
770 var devinfo string 771 var devinfo string
771 if findrouter { 772 if findrouter {
772 devinfo = fmt.Sprintf("| % -10s| % -16s | % -10s | % -40s | % -10s | % -40s |", "beego", timeend.String(), r.Method, r.URL.Path, "match", routerInfo.pattern) 773 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s | % -40s |", r.Method, r.URL.Path, timeend.String(), "match", routerInfo.pattern)
773 } else { 774 } else {
774 devinfo = fmt.Sprintf("| % -10s| % -16s | % -10s | % -40s | % -10s |", "beego", timeend.String(), r.Method, r.URL.Path, "notmatch") 775 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch")
775 } 776 }
776 Debug(devinfo) 777 Debug(devinfo)
777 } 778 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!