mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Adds checks for the NO_LOGS definition and improved the vars resolution time
This commit is contained in:
@@ -36,7 +36,9 @@ Msg::Msg(std::string action)
|
||||
|
||||
bool Msg::evaluate(Rule *rule, Assay *assay) {
|
||||
std::string msg = MacroExpansion::expand(m_msg, assay);
|
||||
#ifndef NO_LOGS
|
||||
assay->debug(9, "Saving msg: " + msg);
|
||||
#endif
|
||||
assay->rulesMessages.push_back(msg);
|
||||
assay->serverLog(msg);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user