Skip to content
Snippets Groups Projects
Commit c51d0815 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #11059: Streamlined log lines wrt target hostname

parent dab969d3
No related branches found
No related tags found
No related merge requests found
......@@ -647,16 +647,16 @@ MultiSender::MultiSender( const HostMap &hostMap, const Parset &parset,
MultiSender::~MultiSender()
{
LOG_INFO_STR("MultiSender: realTime = " << itsParset.settings.realTime << ", maxRetentionTime = " << maxRetentionTime);
LOG_DEBUG_STR("MultiSender: realTime = " << itsParset.settings.realTime << ", maxRetentionTime = " << maxRetentionTime);
for (HostMap::const_iterator i = hostMap.begin(); i != hostMap.end(); ++i) {
const float didNotReceivePerc = 0.0; // we receive everythnig
const float didNotSendPerc = drop_rates.at(i->first).mean();
const float lostPerc = didNotSendPerc - didNotReceivePerc;
if (lostPerc > 0)
LOG_ERROR_STR("[stream " << i->first << " to " << i->second.hostName << "] [BeamFormer] I lost " << lostPerc << "% of the data for that host");
LOG_ERROR_STR("[stream " << i->first << "] [BeamFormer] I lost " << lostPerc << "% of the data to " << i->second.hostName);
if (didNotSendPerc > 0)
LOG_ERROR_STR("[stream " << i->first << " to " << i->second.hostName << "] [BeamFormer] Did not send " << didNotSendPerc << "% of the data to that host");
LOG_ERROR_STR("[stream " << i->first << "] [BeamFormer] Did not send " << didNotSendPerc << "% of the data to " << i->second.hostName);
}
}
......
......@@ -794,9 +794,9 @@ namespace LOFAR
const float lostPerc = didNotSendPerc - didNotReceivePerc;
if (lostPerc > 0)
LOG_ERROR_STR("[Correlator] I lost " << lostPerc << "% of the data for stream " << globalSubbandIdx);
LOG_ERROR_STR("[Correlator] I lost " << lostPerc << "% of the data for stream " << globalSubbandIdx << " to " << ps.settings.correlator.files[globalSubbandIdx].location.host);
if (didNotSendPerc > 0)
LOG_ERROR_STR("[Correlator] Did not send " << didNotSendPerc << "% of the data for stream " << globalSubbandIdx);
LOG_ERROR_STR("[Correlator] Did not send " << didNotSendPerc << "% of the data for stream " << globalSubbandIdx << " to " << ps.settings.correlator.files[globalSubbandIdx].location.host);
}
if (ps.settings.beamFormer.enabled) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment