Changed: #1440 Put the actual project and plugin values into the metadata storage request for appending errors

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 12 years ago
parent b53c2aad26
commit 38eb6f56fc

@ -513,14 +513,17 @@ public:
if (slaveIt == m_Slaves.end()) { nlerror("Received 'slaveLoggedToolError' from unknown slave at '%s'", sender->getModuleName().c_str()); m_Slaves.erase(sender); /*m_SlavesMutex.unlock();*/ return; } if (slaveIt == m_Slaves.end()) { nlerror("Received 'slaveLoggedToolError' from unknown slave at '%s'", sender->getModuleName().c_str()); m_Slaves.erase(sender); /*m_SlavesMutex.unlock();*/ return; }
CSlave *slave = slaveIt->second; CSlave *slave = slaveIt->second;
// TODO CBuildTaskInfo *task = m_BuildTaskQueue.getTaskInfo(slave->ActiveTaskId);
CProcessPluginInfo pluginInfo;
g_PipelineWorkspace->getProcessPlugin(pluginInfo, task->ProcessPluginId);
CFileError fe; CFileError fe;
fe.MasterTime = CTime::getSecondsSince1970(); fe.MasterTime = CTime::getSecondsSince1970();
fe.Level = (TError)type; fe.Level = (TError)type;
fe.Message = error; fe.Message = error;
fe.Time = time; fe.Time = time;
fe.Project = "[TODO:PROJECT]"; fe.Project = task->ProjectName;;
fe.Plugin = "[TODO:PLUGIN]"; fe.Plugin = pluginInfo.Handler;
CMetadataStorage::appendError(fe, CMetadataStorage::getErrorPath(unMacroPath(macroPath))); CMetadataStorage::appendError(fe, CMetadataStorage::getErrorPath(unMacroPath(macroPath)));
notifyTerminalTaskMessage(slave->ActiveTaskId, (TError)type, macroPath, time, error); notifyTerminalTaskMessage(slave->ActiveTaskId, (TError)type, macroPath, time, error);

Loading…
Cancel
Save