Changeset 11016 for trunk/FACT++/src
- Timestamp:
- 06/13/11 18:07:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dataLogger.cc
r10997 r11016 513 513 if (isCmd) 514 514 return; 515 515 516 if (fServiceSubscriptions[server].erase(service) != 1) 516 517 { 518 //check the given subscription against black and white lists 519 if (!ShouldSubscribe(server, service)) 520 return; 521 517 522 ostringstream str; 518 str << "Subscription " << server << "/" << service << " could not be removed as it is not present";523 str << "Subscription " << server << "/" << service << " could not be removed as it is not present"; 519 524 Error(str.str()); 520 525 return; … … 612 617 Debug(str); 613 618 } 614 return new DimStampedInfo((server + "/" + service).c_str(), const_cast<char*>(""), this);619 return new DimStampedInfo((server + "/" + service).c_str(), (void*)NULL, 0, this); 615 620 } 616 621 // -------------------------------------------------------------------------- … … 1153 1158 return; 1154 1159 } 1155 if (I->getSize() <= 0 )1160 if (I->getSize() <= 0 || I->getData()==NULL) 1156 1161 return; 1157 1162 … … 1301 1306 void DataLogger::ReportPlease(DimInfo* I, SubscriptionType& sub) 1302 1307 { 1303 1304 1305 //should we log or report this info ? (i.e. is it a message ?) 1306 bool isItaReport = ((strstr(I->getName(), "Message") == NULL) && (strstr(I->getName(), "MESSAGE") == NULL)); 1307 if (I->getFormat()[0] == 'C') 1308 isItaReport = false; 1308 const string fmt(I->getFormat()); 1309 1310 const bool isItaReport = fmt!="C"; 1309 1311 1310 1312 if (!fNightlyReportFile.is_open()) 1311 1313 return; 1314 1315 if (fDebugIsOn && string(I->getName())!="DATA_LOGGER/MESSAGE") 1316 { 1317 ostringstream str; 1318 str << "Logging " << I->getName() << " [" << I->getFormat() << "] (" << I->getSize() << ")"; 1319 Debug(str); 1320 } 1312 1321 1313 1322 //Check whether we should close and reopen daily text files or not … … 1806 1815 1807 1816 str.str(""); 1808 str << "Num subs : " << fNumSubAndFitsData.numSubscriptions << " Num open FITS: " << fNumSubAndFitsData.numOpenFits;1817 str << "Num subscriptions: " << fNumSubAndFitsData.numSubscriptions << " Num open FITS files: " << fNumSubAndFitsData.numOpenFits; 1809 1818 Debug(str); 1810 1819 }
Note:
See TracChangeset
for help on using the changeset viewer.