mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:20:59 +00:00
fix #814
This commit is contained in:
parent
8716185de8
commit
a907a86476
@ -73,6 +73,8 @@ var (
|
|||||||
"GetControllerAndAction"}
|
"GetControllerAndAction"}
|
||||||
|
|
||||||
url_placeholder = "{{placeholder}}"
|
url_placeholder = "{{placeholder}}"
|
||||||
|
|
||||||
|
FilterRouterLog func() bool
|
||||||
)
|
)
|
||||||
|
|
||||||
// To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
|
// To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
|
||||||
@ -796,7 +798,9 @@ Admin:
|
|||||||
} else {
|
} else {
|
||||||
devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch")
|
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
|
// Call WriteHeader if status code has been set changed
|
||||||
|
Loading…
Reference in New Issue
Block a user