aae89576 by astaxie

fix #814

1 parent a907a864
...@@ -74,7 +74,7 @@ var ( ...@@ -74,7 +74,7 @@ var (
74 74
75 url_placeholder = "{{placeholder}}" 75 url_placeholder = "{{placeholder}}"
76 76
77 FilterRouterLog func() bool 77 FilterRouterLog func(*beecontext.Context) bool
78 ) 78 )
79 79
80 // To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter 80 // To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
...@@ -798,7 +798,7 @@ Admin: ...@@ -798,7 +798,7 @@ Admin:
798 } else { 798 } else {
799 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch") 799 devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch")
800 } 800 }
801 if FilterRouterLog == nil || !FilterRouterLog() { 801 if FilterRouterLog == nil || !FilterRouterLog(context) {
802 Debug(devinfo) 802 Debug(devinfo)
803 } 803 }
804 } 804 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!