From a93c77e9a24a7ec821890d3ab39575f3c2998f35 Mon Sep 17 00:00:00 2001 From: brectanus Date: Tue, 27 Mar 2007 18:00:04 +0000 Subject: [PATCH] Updated line/num/id debug output with a format that is easier to parse. (trac #47) --- apache2/re.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache2/re.c b/apache2/re.c index f21f3e4a..335da958 100644 --- a/apache2/re.c +++ b/apache2/re.c @@ -695,10 +695,10 @@ apr_status_t msre_ruleset_process_phase(msre_ruleset *ruleset, modsec_rec *msr) const char *fn = NULL; const char *id = NULL; if (rule->filename != NULL) { - fn = apr_psprintf(p, " [%s:%d]", rule->filename, rule->line_num); + fn = apr_psprintf(p, " [file \"%s\"][line \"%d\"]", rule->filename, rule->line_num); } if (rule->actionset != NULL && rule->actionset->id != NULL) { - id = apr_psprintf(p, " [id \"%s\"]", rule->actionset->id); + id = apr_psprintf(p, "[id \"%s\"]", rule->actionset->id); } msr_log(msr, 4, "Recipe: Invoking rule %x%s%s.", rule, (fn ? fn : ""), (id ? id : ""));