From: Florent Bruneau Date: Mon, 15 Sep 2008 16:30:51 +0000 (+0200) Subject: Filter runner logs. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=5fc57f7c291b99db643dc22a814087b34b9f4b59;p=apps%2Fpfixtools.git Filter runner logs. Signed-off-by: Florent Bruneau --- diff --git a/postlicyd/filter.c b/postlicyd/filter.c index 7b0dee3..6556422 100644 --- a/postlicyd/filter.c +++ b/postlicyd/filter.c @@ -137,12 +137,17 @@ filter_hook_t *filter_run(const filter_t *filter, const query_t *query) { int start = 0; int end = filter->hooks.len; + syslog(LOG_DEBUG, "running filter %s (%s)", + filter->name, ftokens[filter->type]); filter_result_t res = runners[filter->type](filter, query); + syslog(LOG_DEBUG, "filter run, result is %s", htokens[res]); while (start < end) { int mid = (start + end) / 2; filter_hook_t *hook = array_ptr(filter->hooks, mid); if (hook->type == res) { + syslog(LOG_DEBUG, "return hook of type %s, value %s", + htokens[hook->type], hook->value); return hook; } else if (res < hook->type) { end = mid;