1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 21:01:31 +00:00
This commit is contained in:
astaxie 2014-10-01 22:28:49 +08:00
parent 8716185de8
commit a907a86476

View File

@ -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,8 +798,10 @@ Admin:
} else {
devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch")
}
if FilterRouterLog == nil || !FilterRouterLog() {
Debug(devinfo)
}
}
// Call WriteHeader if status code has been set changed
if context.Output.Status != 0 {