From f93c0de940226b6384596c5f38bfdb11e773e911 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 24 Sep 2015 08:44:33 -0700 Subject: [PATCH] Disable NO_LOGS by default --- src/Makefile.am | 1 - src/rule.cc | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index e7d1baac..482dc80e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -203,7 +203,6 @@ libmodsecurity_la_CPPFLAGS = \ -fPIC \ -O3 \ -I ../headers \ - -DNO_LOGS=1 \ $(GEOIP_CFLAGS) \ $(PCRE_CPPFLAGS) diff --git a/src/rule.cc b/src/rule.cc index ed630a19..f1048562 100644 --- a/src/rule.cc +++ b/src/rule.cc @@ -300,7 +300,7 @@ bool Rule::evaluate(Assay *assay) { if (std::find(exclusions.begin(), exclusions.end(), v->m_key) != exclusions.end()) { #ifndef NO_LOGS - assay->debug(9, "Variable: " + v.m_key + " is part of the" + + assay->debug(9, "Variable: " + v->m_key + " is part of the" + " exclusion list, skipping..."); #endif continue; @@ -349,7 +349,7 @@ bool Rule::evaluate(Assay *assay) { #ifndef NO_LOGS assay->debug(9, "Target value: \"" + limitTo(80, toHexIfNeeded(value)) + \ - "\" (Variable: " + v.m_key + ")"); + "\" (Variable: " + v->m_key + ")"); #endif ret = this->op->evaluate(assay, value);