mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 19:16:40 +03:00
Changes debuglogs schema to avoid unecessary str allocation
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "modsecurity/rules.h"
|
||||
#include "src/utils/system.h"
|
||||
#include "src/engine/lua.h"
|
||||
|
||||
@@ -49,9 +50,7 @@ bool Exec::init(std::string *error) {
|
||||
|
||||
|
||||
bool Exec::evaluate(Rule *rule, Transaction *t) {
|
||||
#ifndef NO_LOGS
|
||||
t->debug(8, "Running script... " + m_script);
|
||||
#endif
|
||||
ms_dbg_a(t, 8, "Running script... " + m_script);
|
||||
m_lua.run(t);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user