Changeset 18466 for trunk/FACT++/src
- Timestamp:
- 04/21/16 10:58:54 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r18465 r18466 205 205 MessageImp fNightlyLogImp; 206 206 /// ofstream for the Nightly report file 207 ofstream fNightlyReportFile;207 // ofstream fNightlyReportFile; 208 208 /// base path of files 209 209 string fFilePath; … … 1383 1383 fNightlyLogFile << endl; 1384 1384 fNightlyLogFile.close(); 1385 fNightlyReportFile.close();1385 // fNightlyReportFile.close(); 1386 1386 1387 1387 Info("Closed: "+fFullNightlyLogFileName); 1388 Info("Closed: "+fFullNightlyReportFileName);1388 // Info("Closed: "+fFullNightlyReportFileName); 1389 1389 1390 1390 fFullNightlyLogFileName = CompileFileNameWithPath(fFilePath, "", "log"); … … 1397 1397 fNightlyLogFile << endl; 1398 1398 1399 fFullNightlyReportFileName = CompileFileNameWithPath(fFilePath, "", "rep");1400 if (!OpenTextFile(fNightlyReportFile, fFullNightlyReportFileName))1401 {1402 GoToReady();1403 SetCurrentState(kSM_BadFolder, "Report");1404 return;1405 }1399 // fFullNightlyReportFileName = CompileFileNameWithPath(fFilePath, "", "rep"); 1400 // if (!OpenTextFile(fNightlyReportFile, fFullNightlyReportFileName)) 1401 // { 1402 // GoToReady(); 1403 // SetCurrentState(kSM_BadFolder, "Report"); 1404 // return; 1405 // } 1406 1406 } 1407 1407 //create the converter for that service … … 1593 1593 Message("Nightly log-file: "+fFullNightlyLogFileName); 1594 1594 1595 if (fNightlyReportFile.is_open())1596 Message("Nightly report-file: "+fFullNightlyReportFileName);1595 // if (fNightlyReportFile.is_open()) 1596 // Message("Nightly report-file: "+fFullNightlyReportFileName); 1597 1597 1598 1598 const DimWriteStatistics::Stats statVar = fFilesStats.GetTotalSizeWritten(); … … 1829 1829 fNightlyLogFile << endl; 1830 1830 1831 fFullNightlyReportFileName = CompileFileNameWithPath(fFilePath, "", "rep");1832 if (!OpenTextFile(fNightlyReportFile, fFullNightlyReportFileName))1833 {1834 fNightlyLogFile.close();1835 Info("Closed: "+fFullNightlyReportFileName);1836 return kSM_BadFolder;1837 }1831 // fFullNightlyReportFileName = CompileFileNameWithPath(fFilePath, "", "rep"); 1832 // if (!OpenTextFile(fNightlyReportFile, fFullNightlyReportFileName)) 1833 // { 1834 // fNightlyLogFile.close(); 1835 // Info("Closed: "+fFullNightlyReportFileName); 1836 // return kSM_BadFolder; 1837 // } 1838 1838 1839 1839 fFilesStats.FileOpened(fFullNightlyLogFileName); 1840 fFilesStats.FileOpened(fFullNightlyReportFileName);1840 // fFilesStats.FileOpened(fFullNightlyReportFileName); 1841 1841 //notify that a new file has been opened. 1842 1842 const string baseFileName = CompileFileNameWithPath(fFilePath, "", ""); … … 2161 2161 const string baseFileName = CompileFileNameWithPath(fFilePath, "", ""); 2162 2162 2163 if (fNightlyReportFile.is_open())2164 {2165 fNightlyReportFile.close();2166 Info("Closed: "+baseFileName+".rep");2167 }2163 // if (fNightlyReportFile.is_open()) 2164 // { 2165 // fNightlyReportFile.close(); 2166 // Info("Closed: "+baseFileName+".rep"); 2167 // } 2168 2168 #ifdef HAVE_FITS 2169 2169 for (SubscriptionsListType::iterator i = fServiceSubscriptions.begin(); i != fServiceSubscriptions.end(); i++)
Note:
See TracChangeset
for help on using the changeset viewer.