Reduce use of underscores in log output.

The use of underscores in log lines makes them harder to read,
without contributing/adding extra information.
This commit is contained in:
Lasse Karstensen
2017-07-27 13:59:22 +02:00
committed by Felipe Zimmerle
parent e3b9e6061f
commit 5c7892ce89

View File

@@ -259,11 +259,8 @@ void Rule::executeActionsIndependentOfChainedRuleResult(Transaction *trans,
*containsDisruptive = true; *containsDisruptive = true;
} }
} else { } else {
if (a->m_name == "setvar" if (a->m_name == "setvar" || a->m_name == "msg" || a->m_name == "log") {
|| a->m_name == "msg" trans->debug(4, "Running [independent] (non-disruptive) action: " + a->m_name);
|| a->m_name == "log") {
trans->debug(4, "Running [I] (_non_ disruptive) " \
"action: " + a->m_name);
a->evaluate(this, trans, ruleMessage); a->evaluate(this, trans, ruleMessage);
} }
} }
@@ -635,7 +632,7 @@ void Rule::executeActionsAfterFullMatch(Transaction *trans,
} }
if (containsDisruptive) { if (containsDisruptive) {
trans->debug(4, "(SecDefaultAction) _ignoring_ " \ trans->debug(4, "(SecDefaultAction) ignoring " \
"action: " + a->m_name + \ "action: " + a->m_name + \
" (rule contains a disruptive action)"); " (rule contains a disruptive action)");
continue; continue;
@@ -644,14 +641,13 @@ void Rule::executeActionsAfterFullMatch(Transaction *trans,
if (trans->getRuleEngineState() == Rules::EnabledRuleEngine) { if (trans->getRuleEngineState() == Rules::EnabledRuleEngine) {
trans->debug(4, "(SecDefaultAction) " \ trans->debug(4, "(SecDefaultAction) " \
"Running action: " + a->m_name + \ "Running action: " + a->m_name + \
" (rule _does not_ contains a " \ " (rule does not contain a disruptive action)");
"disruptive action)");
a->evaluate(this, trans, ruleMessage); a->evaluate(this, trans, ruleMessage);
continue; continue;
} }
trans->debug(4, "(SecDefaultAction) _Not_ running action: " \ trans->debug(4, "(SecDefaultAction) Not running action: " \
+ a->m_name + ". Rule _does not_contains a disruptive action,"\ + a->m_name + ". Rule does not contain a disruptive action,"\
+ " but SecRuleEngine is not On."); + " but SecRuleEngine is not On.");
} }
@@ -659,8 +655,7 @@ void Rule::executeActionsAfterFullMatch(Transaction *trans,
if (a->isDisruptive() == false) { if (a->isDisruptive() == false) {
if (a->m_name != "setvar" && a->m_name != "log" if (a->m_name != "setvar" && a->m_name != "log"
&& a->m_name != "msg") { && a->m_name != "msg") {
trans->debug(4, "Running [I] (_non_ disruptive) " \ trans->debug(4, "Running (non-disruptive) action: " + a->m_name);
"action: " + a->m_name);
a->evaluate(this, trans, ruleMessage); a->evaluate(this, trans, ruleMessage);
} }
continue; continue;