Ignore:
Timestamp:
07/10/11 17:05:56 (13 years ago)
Author:
tbretz
Message:
Updated output when opening and closing files.
File:
1 edited

Legend:

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

    r11320 r11325  
    613613bool DataLogger::OpenTextFilePlease(ofstream& stream, const string& name)
    614614{
    615     Info("Opening: "+name);
    616 
    617615    errno = 0;
    618616    stream.open(name.c_str(), ios_base::out | ios_base::app);
     
    624622        return false;
    625623    }
     624
     625    Info("Opened: "+name);
    626626
    627627    return true;
     
    12051205bool DataLogger::OpenStream(shared_ptr<ofstream> stream, const string &filename)
    12061206{
    1207     Info("Opening: "+filename);
    1208 
    12091207    if (stream->is_open())
    12101208    {
     
    12321230        return false;
    12331231    }
     1232
     1233    Info("Opened: "+filename);
    12341234
    12351235    return true;
     
    20162016            fOpenedNightlyFits[fileNameOnly].push_back(serviceName);
    20172017
    2018         ostringstream str;
    2019         str << "Opening: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")";
    2020         Info(str);
    2021 
    20222018        if (!sub.nightlyFile.Open(partialName, serviceName, NULL, &fNumSubAndFitsData.numOpenFits, this, 0))
    20232019        {
     
    20262022            return;
    20272023        }
     2024
     2025        ostringstream str;
     2026        str << "Opened: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")";
     2027        Info(str);
     2028
    20282029        //notify the opening
    20292030        const string baseFileName = CompileFileNameWithPath(fNightlyFilePath, "", "");
     
    20772078        NotifyOpenedFile(baseFileName, 7, fOpenedRunFiles);// + '_' + serviceName, 4);
    20782079
    2079         ostringstream str;
    2080         str << "Opening: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")";
    2081         Info(str);
    2082 
    20832080        if (hasGrouping)
    20842081        {
     
    20992096            }
    21002097        }
     2098
     2099        ostringstream str;
     2100        str << "Opened: " << partialName << " (Nfits=" << fNumSubAndFitsData.numOpenFits << ")";
     2101        Info(str);
     2102
    21012103        if (fNumSubAndFitsIsOn)
    21022104            fNumSubAndFits->updateService();
Note: See TracChangeset for help on using the changeset viewer.