Fixed a related issue with the ThreadExecutor fix

Don't call reportErr when the message type is a REPORT_INFO, but call reportInfo instead.
This commit is contained in:
Edoardo Prezioso 2012-10-19 20:17:34 +02:00
parent 1881898e67
commit 6cfb664def
1 changed files with 4 additions and 1 deletions

View File

@ -104,7 +104,10 @@ int ThreadExecutor::handleRead(int rpipe, unsigned int &result)
std::string errmsg = msg.toString(_settings._verbose);
if (std::find(_errorList.begin(), _errorList.end(), errmsg) == _errorList.end()) {
_errorList.push_back(errmsg);
_errorLogger.reportErr(msg);
if (type == REPORT_ERROR)
_errorLogger.reportErr(msg);
else
_errorLogger.reportInfo(msg);
}
}
} else if (type == CHILD_END) {