mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-05 22:09:25 +03:00
Fix the debug log merge function
This commit is contained in:
@@ -357,13 +357,15 @@ class RulesProperties {
|
|||||||
|
|
||||||
if (from->m_debugLog && to->m_debugLog &&
|
if (from->m_debugLog && to->m_debugLog &&
|
||||||
from->m_debugLog->isLogFileSet()) {
|
from->m_debugLog->isLogFileSet()) {
|
||||||
std::string error;
|
if (to->m_debugLog->isLogFileSet() == false) {
|
||||||
to->m_debugLog->setDebugLogFile(
|
std::string error;
|
||||||
from->m_debugLog->getDebugLogFile(),
|
to->m_debugLog->setDebugLogFile(
|
||||||
&error);
|
from->m_debugLog->getDebugLogFile(),
|
||||||
if (error.size() > 0) {
|
&error);
|
||||||
*err << error;
|
if (error.size() > 0) {
|
||||||
return -1;
|
*err << error;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user