From aae89576c60f5cca7d1b05c8e5ae0588a1642730 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 1 Oct 2014 22:31:44 +0800 Subject: [PATCH] fix #814 --- router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router.go b/router.go index 3e1b4b2a..ddcf36c3 100644 --- a/router.go +++ b/router.go @@ -74,7 +74,7 @@ var ( url_placeholder = "{{placeholder}}" - FilterRouterLog func() bool + FilterRouterLog func(*beecontext.Context) bool ) // To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter @@ -798,7 +798,7 @@ Admin: } else { devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch") } - if FilterRouterLog == nil || !FilterRouterLog() { + if FilterRouterLog == nil || !FilterRouterLog(context) { Debug(devinfo) } }