@@ -216,14 +216,14 @@ int CTPRunManager::addScalers(uint32_t irun, std::time_t time, bool start)
216216 }
217217 scalrec.intRecord .bc = 0 ;
218218 mActiveRuns [irun]->scalers .addScalerRacordRaw (scalrec);
219- LOG (info ) << " Adding scalers for orbit:" << scalrec.intRecord .orbit ;
219+ LOG (debug ) << " Adding scalers for orbit:" << scalrec.intRecord .orbit ;
220220 // scalrec.printStream(std::cout);
221221 // printCounters();
222222 return 0 ;
223223}
224224int CTPRunManager::processMessage (std::string& topic, const std::string& message)
225225{
226- LOG (info ) << " Processing message with topic:" << topic;
226+ LOG (debug ) << " Processing message with topic:" << topic;
227227 std::string firstcounters;
228228 if (topic.find (" clear" ) != std::string::npos) {
229229 mRunsLoaded .clear ();
@@ -283,7 +283,7 @@ int CTPRunManager::processMessage(std::string& topic, const std::string& message
283283 // get config
284284 size_t irun = message.find (" run" );
285285 if (irun == std::string::npos) {
286- LOG (warning ) << " run keyword not found in SOX" ;
286+ LOG (debug ) << " run keyword not found in SOX" ;
287287 irun = message.size ();
288288 }
289289 LOG (info) << " SOX received, Run keyword position:" << irun;
@@ -319,22 +319,22 @@ int CTPRunManager::processMessage(std::string& topic, const std::string& message
319319 }
320320 double timeStamp = std::stold (tokens.at (0 ));
321321 std::time_t tt = timeStamp;
322- LOG (info ) << " Processing scalers, all good, time:" << tokens.at (0 ) << " " << std::asctime (std::localtime (&tt));
322+ LOG (debug ) << " Processing scalers, all good, time:" << tokens.at (0 ) << " " << std::asctime (std::localtime (&tt));
323323 for (uint32_t i = 1 ; i < tokens.size (); i++) {
324324 mCounters [i - 1 ] = std::stoull (tokens.at (i));
325325 if (i < (NRUNS + 1 )) {
326- std::cout << mCounters [i - 1 ] << " " ;
326+ // std::cout << mCounters[i - 1] << " ";
327327 }
328328 }
329- std::cout << std::endl;
330- LOG (info ) << " Counter size:" << tokens.size ();
329+ // std::cout << std::endl;
330+ LOG (debug ) << " Counter size:" << tokens.size ();
331331 //
332332 for (uint32_t i = 0 ; i < NRUNS; i++) {
333333 if ((mCounters [i] == 0 ) && (mActiveRunNumbers [i] == 0 )) {
334334 // not active
335335 } else if ((mCounters [i] != 0 ) && (mActiveRunNumbers [i] == mCounters [i])) {
336336 // active , do scalers
337- LOG (info ) << " Run continue:" << mCounters [i];
337+ LOG (debug ) << " Run continue:" << mCounters [i];
338338 addScalers (i, tt);
339339 // LOG(info) << " QC period:" << mActiveRunNumbers[i] << " " << mActiveRuns[i]->qcwpcount << " " << mQCWritePeriod;
340340 if (mActiveRuns [i]->qcwpcount > mQCWritePeriod ) {
@@ -367,7 +367,7 @@ int CTPRunManager::processMessage(std::string& topic, const std::string& message
367367 }
368368 }
369369 mEOX = 0 ;
370- printActiveRuns ();
370+ // printActiveRuns();
371371 return 0 ;
372372}
373373void CTPRunManager::printActiveRuns () const
0 commit comments