mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
Changes debuglogs schema to avoid unecessary str allocation
This commit is contained in:
@@ -63,9 +63,7 @@ class ValidateDTD : public Operator {
|
||||
if (len > 0) {
|
||||
s = "XML Error: " + std::string(buf);
|
||||
}
|
||||
#ifndef NO_LOGS
|
||||
t->debug(4, s);
|
||||
#endif
|
||||
ms_dbg_a(t, 4, s);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,9 +80,7 @@ class ValidateDTD : public Operator {
|
||||
if (len > 0) {
|
||||
s = "XML Warning: " + std::string(buf);
|
||||
}
|
||||
#ifndef NO_LOGS
|
||||
t->debug(4, s);
|
||||
#endif
|
||||
ms_dbg_a(t, 4, s);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user