fix #814
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -73,6 +73,8 @@ var ( | ... | @@ -73,6 +73,8 @@ var ( |
| 73 | "GetControllerAndAction"} | 73 | "GetControllerAndAction"} |
| 74 | 74 | ||
| 75 | url_placeholder = "{{placeholder}}" | 75 | url_placeholder = "{{placeholder}}" |
| 76 | |||
| 77 | FilterRouterLog func() bool | ||
| 76 | ) | 78 | ) |
| 77 | 79 | ||
| 78 | // 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 |
| ... | @@ -796,7 +798,9 @@ Admin: | ... | @@ -796,7 +798,9 @@ Admin: |
| 796 | } else { | 798 | } else { |
| 797 | 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") |
| 798 | } | 800 | } |
| 799 | Debug(devinfo) | 801 | if FilterRouterLog == nil || !FilterRouterLog() { |
| 802 | Debug(devinfo) | ||
| 803 | } | ||
| 800 | } | 804 | } |
| 801 | 805 | ||
| 802 | // Call WriteHeader if status code has been set changed | 806 | // Call WriteHeader if status code has been set changed | ... | ... |
-
Please register or sign in to post a comment