Skip to content

Commit 6395fe0

Browse files
martinhsvzimmerle
authored andcommitted
Restore chained rule logging to be more like 2.9
1 parent 038522a commit 6395fe0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.0.4 - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Restore chained rule part H logging to be more like 2.9 behaviour
5+
[Issue #2196 - @martinhsv]
46
- Small fixes in log messages to help debugging the file upload
57
[Issue #2130 - @airween]
68
- Fix Cookie header parsing issues

src/rule.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ bool Rule::evaluate(Transaction *trans,
801801
executeActionsAfterFullMatch(trans, containsBlock, ruleMessage);
802802

803803
/* last rule in the chain. */
804-
bool isItToBeLogged = ruleMessage->m_saveMessage;
804+
bool isItToBeLogged = (ruleMessage->m_saveMessage && (m_chainedRuleParent == nullptr));
805805
if (isItToBeLogged && !m_containsMultiMatchAction) {
806806
/* warn */
807807
trans->m_rulesMessages.push_back(*ruleMessage);

0 commit comments

Comments
 (0)