a907a864 by astaxie

fix #814

1 parent 8716185d
......@@ -73,6 +73,8 @@ var (
"GetControllerAndAction"}
url_placeholder = "{{placeholder}}"
FilterRouterLog func() bool
)
// To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
......@@ -796,7 +798,9 @@ Admin:
} else {
devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch")
}
Debug(devinfo)
if FilterRouterLog == nil || !FilterRouterLog() {
Debug(devinfo)
}
}
// Call WriteHeader if status code has been set changed
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!