Fix the debug log merge function

This commit is contained in:
Felipe Zimmerle
2017-03-27 11:24:26 -03:00
parent eb12b15146
commit 2a54bf23e5

View File

@@ -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;
}
} }
} }