mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-06 06:16:51 +03:00
Fix the debug log merge function
This commit is contained in:
@@ -357,6 +357,7 @@ class RulesProperties {
|
|||||||
|
|
||||||
if (from->m_debugLog && to->m_debugLog &&
|
if (from->m_debugLog && to->m_debugLog &&
|
||||||
from->m_debugLog->isLogFileSet()) {
|
from->m_debugLog->isLogFileSet()) {
|
||||||
|
if (to->m_debugLog->isLogFileSet() == false) {
|
||||||
std::string error;
|
std::string error;
|
||||||
to->m_debugLog->setDebugLogFile(
|
to->m_debugLog->setDebugLogFile(
|
||||||
from->m_debugLog->getDebugLogFile(),
|
from->m_debugLog->getDebugLogFile(),
|
||||||
@@ -366,6 +367,7 @@ class RulesProperties {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (from->m_debugLog && to->m_debugLog &&
|
if (from->m_debugLog && to->m_debugLog &&
|
||||||
from->m_debugLog->isLogLevelSet()) {
|
from->m_debugLog->isLogLevelSet()) {
|
||||||
|
Reference in New Issue
Block a user