Skip to content

Commit

Permalink
re #10066 logging volume reduced
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Aug 8, 2014
1 parent 5936fac commit 63d79db
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -120,6 +120,8 @@ namespace Algorithms

std::vector<SpectraData> dataVector(nHist);

int failedCount = 0;

//for each spectra
PARALLEL_FOR2(summedWs,outputWs)
for (int i = 0; i < nHist; ++i)
Expand Down Expand Up @@ -187,7 +189,8 @@ namespace Algorithms
}
catch (Exception::NotFoundError)
{
g_log.warning()<<"Could not find detector for workspace index " <<i<<std::endl;
g_log.debug()<<"Could not find detector for workspace index " <<i<<std::endl;
failedCount++;
//flag this is the datavector
dataVector[i].horizontalValue = std::numeric_limits<double>::min();
dataVector[i].verticalValue = std::numeric_limits<double>::min();
Expand All @@ -200,6 +203,8 @@ namespace Algorithms
progress.report("Calculating new coords");
}

g_log.warning()<<"Could not find detector for " <<failedCount<< " spectra, see the debug log for more details." << std::endl;

//set up the axes on the output workspace
MantidVecPtr x,y;
MantidVec& xRef = x.access();
Expand Down

0 comments on commit 63d79db

Please sign in to comment.