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
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -357,13 +357,15 @@ class RulesProperties {
if (from->m_debugLog && to->m_debugLog &&
from->m_debugLog->isLogFileSet()) {
std::string error;
to->m_debugLog->setDebugLogFile(
from->m_debugLog->getDebugLogFile(),
&error);
if (error.size() > 0) {
*err << error;
return -1;
if (to->m_debugLog->isLogFileSet() == false) {
std::string error;
to->m_debugLog->setDebugLogFile(
from->m_debugLog->getDebugLogFile(),
&error);
if (error.size() > 0) {
*err << error;
return -1;
}
}
}