Adds rule number to the debug logs and printing expaded variables

This commit is contained in:
Felipe Zimmerle 2015-09-16 11:24:15 -03:00
parent 4bf7f7a44c
commit 320bcde89e

View File

@ -30,6 +30,7 @@
#include "actions/transformations/none.h"
#include "variables/variations/exclusion.h"
#include "src/utils.h"
#include "src/macro_expansion.h"
using ModSecurity::Variables::Variations::Exclusion;
@ -195,8 +196,11 @@ bool Rule::evaluate(Assay *assay) {
return evaluateActions(assay);
}
assay->debug(4, "Executing operator \"" + this->op->op \
+ "\" with param \"" + this->op->param + "\" against " \
assay->debug(4, "(Rule: " + std::to_string(rule_id) \
+ ") Executing operator \"" + this->op->op \
+ "\" with param: " \
+ MacroExpansion::expandKeepOriginal(this->op->param, assay) \
+ ", against " \
+ Variable::to_s(variables) + ".");
clock_t begin = clock();