Changeset 18466


Ignore:
Timestamp:
04/21/16 10:58:54 (9 years ago)
Author:
lyard
Message:
Removed empty .rep file entirely
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r18465 r18466  
    205205    MessageImp fNightlyLogImp;
    206206    /// ofstream for the Nightly report file
    207     ofstream fNightlyReportFile;
     207//    ofstream fNightlyReportFile;
    208208    /// base path of files
    209209    string fFilePath;
     
    13831383        fNightlyLogFile << endl;
    13841384        fNightlyLogFile.close();
    1385         fNightlyReportFile.close();
     1385//        fNightlyReportFile.close();
    13861386
    13871387        Info("Closed: "+fFullNightlyLogFileName);
    1388         Info("Closed: "+fFullNightlyReportFileName);
     1388//        Info("Closed: "+fFullNightlyReportFileName);
    13891389
    13901390        fFullNightlyLogFileName = CompileFileNameWithPath(fFilePath, "", "log");
     
    13971397        fNightlyLogFile << endl;
    13981398
    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//        }
    14061406    }
    14071407    //create the converter for that service
     
    15931593        Message("Nightly log-file:    "+fFullNightlyLogFileName);
    15941594
    1595     if (fNightlyReportFile.is_open())
    1596         Message("Nightly report-file: "+fFullNightlyReportFileName);
     1595//    if (fNightlyReportFile.is_open())
     1596 //       Message("Nightly report-file: "+fFullNightlyReportFileName);
    15971597
    15981598    const DimWriteStatistics::Stats statVar = fFilesStats.GetTotalSizeWritten();
     
    18291829        fNightlyLogFile << endl;
    18301830
    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//    }
    18381838
    18391839    fFilesStats.FileOpened(fFullNightlyLogFileName);
    1840     fFilesStats.FileOpened(fFullNightlyReportFileName);
     1840//    fFilesStats.FileOpened(fFullNightlyReportFileName);
    18411841    //notify that a new file has been opened.
    18421842    const string baseFileName = CompileFileNameWithPath(fFilePath, "", "");
     
    21612161   const string baseFileName = CompileFileNameWithPath(fFilePath, "", "");
    21622162
    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//    }
    21682168#ifdef HAVE_FITS
    21692169    for (SubscriptionsListType::iterator i = fServiceSubscriptions.begin(); i != fServiceSubscriptions.end(); i++)
Note: See TracChangeset for help on using the changeset viewer.