Changeset 11500 for trunk/FACT++/src/datalogger.cc
- Timestamp:
- 07/21/11 09:31:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r11495 r11500 969 969 { 970 970 // dim_lock(); 971 fNightlyLogFile << endl; 971 972 fNightlyLogFile.close(); 972 973 // dim_unlock(); … … 1233 1234 Debug("Its Noon! Closing and reopening nightly text files"); 1234 1235 1236 fNightlyLogFile << endl; 1235 1237 fNightlyLogFile.close(); 1236 1238 fNightlyReportFile.close(); … … 1246 1248 return; 1247 1249 } 1250 fNightlyLogFile << endl; 1248 1251 1249 1252 fFullNightlyReportFileName = CompileFileNameWithPath(fNightlyFilePath, "", "rep"); … … 1336 1339 //remove this subscription from the list. 1337 1340 //because these operators use references to elements, and because they're supposed here to erase these objects on the way, I'm not too sure... so duplicate the names ! 1338 string server = sub.server; 1339 string service = sub.service; 1340 fServiceSubscriptions.find(server)->second.erase(service); 1341 RemoveService(sub.server, sub.service, false); 1342 // string server = sub.server; 1343 // string service = sub.service; 1344 // fServiceSubscriptions.find(server)->second.erase(service); 1341 1345 return; 1342 1346 } … … 1397 1401 //remove this subscription from the list. 1398 1402 //because these operators use references to elements, and because they're supposed here to erase these objects on the way, I'm not too sure... so duplicate the names ! 1399 string server = sub.server; 1400 string service = sub.service; 1401 fServiceSubscriptions.find(server)->second.erase(service); 1403 RemoveService(sub.server, sub.service, false); 1404 // string server = sub.server; 1405 // string service = sub.service; 1406 // fServiceSubscriptions.find(server)->second.erase(service); 1402 1407 return; 1403 1408 } … … 1776 1781 } 1777 1782 fFullNightlyLogFileName = CompileFileNameWithPath(fNightlyFilePath, "", "log"); 1783 bool nightlyLogOpen = fNightlyLogFile.is_open(); 1778 1784 if (!OpenTextFilePlease(fNightlyLogFile, fFullNightlyLogFileName)) 1779 1785 return kSM_BadNightlyConfig; 1780 1786 if (!nightlyLogOpen) 1787 fNightlyLogFile << endl; 1781 1788 1782 1789 fFullNightlyReportFileName = CompileFileNameWithPath(fNightlyFilePath, "", "rep"); … … 2002 2009 { 2003 2010 sub.nightlyFile.Close(); 2011 RemoveService(sub.server, sub.service, false); 2004 2012 GoToNightlyWriteErrorState(); 2005 2013 return; … … 2012 2020 { 2013 2021 sub.runFile.Close(); 2022 RemoveService(sub.server, sub.service, false); 2014 2023 GoToRunWriteErrorState(); 2015 2024 return; … … 2385 2394 else 2386 2395 { 2396 fNightlyLogFile << endl; 2387 2397 NotifyOpenedFile(fFullNightlyLogFileName, 1, fOpenedNightlyFiles); 2388 2398 for (vector<string>::iterator it=backLogBuffer.begin();it!=backLogBuffer.end();it++)
Note:
See TracChangeset
for help on using the changeset viewer.