Changeset 10896 for trunk/FACT++


Ignore:
Timestamp:
06/01/11 10:20:14 (13 years ago)
Author:
tbretz
Message:
More updates to PRINT
File:
1 edited

Legend:

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

    r10895 r10896  
    16311631int DataLogger::PrintStatePlease(const Event& )
    16321632{
    1633     Message("-----------------------------------------");
    1634     Message("------ DATA LOGGER CURRENT STATE --------");
    1635     Message("-----------------------------------------");
     1633    Message("------------------------------------------");
     1634    Message("------- DATA LOGGER CURRENT STATE --------");
     1635    Message("------------------------------------------");
     1636
    16361637    //print the path configuration
    16371638    Message("Nightly Path: " + CheckIfDirIsDot(fNightlyFilePath));
     
    16441645        str << "\n" << it->runNumber;
    16451646    Message(str);
    1646     Message("----------- OPENED FILES ----------------");
     1647
    16471648    //print all the open files.
     1649    Message("------------ OPENED FILES ----------------");
    16481650    if (fNightlyLogFile.is_open())
    1649         Message("Nightly Log..........OPEN");
     1651        Message("Nightly log-file: "/*+filename+*/" (OPEN)");
    16501652    else
    1651         Message("Nightly log........CLOSED");
     1653        Message("Nightly log-file: "/*filename+*/" (CLOSED)");
    16521654    if (fNightlyReportFile.is_open())
    1653         Message("Nightly Report.......OPEN");
     1655        Message("Nightly report-file: "/*filename+*/" (OPEN)");
    16541656    else
    1655         Message("Nightly Report.....CLOSED");
     1657        Message("Nightly report-file: "/*filename+*/" (CLOSED)");
    16561658    for (list<RunNumberType>::iterator it=fRunNumber.begin(); it!=fRunNumber.end(); it++)
    16571659    {
    16581660        if (it->logFile->is_open())
    1659             Message("Run Log " + it->logName + " is OPEN");
     1661            Message("Run log-file: " + it->logName + " (OPEN)");
    16601662        else
    1661             Message("Run Log " + it->logName + " is CLOSED");
     1663            Message("Run log-file: " + it->logName + " (CLOSED)");
    16621664        if (it->reportFile->is_open())
    1663             Message("Run Report " + it->reportName + " is OPEN");
     1665            Message("Run report-file: " + it->reportName + " (OPEN)");
    16641666        else
    1665             Message("Run Report " + it->reportName + " CLOSED");
    1666     }
     1667            Message("Run report-file: " + it->reportName + " (CLOSED)");
     1668    }
     1669
    16671670    bool statWarning = false;
    16681671    DataLoggerStats statVar;
    16691672    calculateTotalSizeWritten(statVar, statWarning, false);
    1670     Message("---------------- STATS ------------------");
     1673    Message("----------------- STATS ------------------");
    16711674    str.str("");
    16721675    str << "Total Size written: " << statVar.sizeWritten << " bytes.";
     
    16811684    else
    16821685        Message("Statistics updates are currently disabled");
    1683     Message("----------- DIM SUBSCRIPTIONS -----------");
    1684 
     1686
     1687    Message("------------ DIM SUBSCRIPTIONS -----------");
    16851688    str.str("");
    1686     str << "There are " << fNumSubAndFitsData.numSubscriptions << " active DIM subscriptions:";
     1689    str << "There are " << fNumSubAndFitsData.numSubscriptions << " active DIM subscriptions.";
    16871690    Message(str);
    16881691
     
    16941697    }
    16951698
    1696     Message("------------- BLOCK LIST ----------------");
     1699    Message("--------------- BLOCK LIST ---------------");
    16971700    for (set<string>::iterator it=fBlackList.begin(); it != fBlackList.end(); it++)
    1698         Message(*it);
     1701        Message(" -> "+*it);
    16991702    if (fBlackList.size()==0)
    17001703        Message(" <empty>");
    17011704
    1702     Message("----------- ALLOW LIST ------------------");
     1705    Message("--------------- ALLOW LIST ---------------");
    17031706    for (set<string>::iterator it=fWhiteList.begin(); it != fWhiteList.end(); it++)
    1704         Message(*it);
     1707        Message(" -> "+*it);
    17051708    if (fWhiteList.size()==0)
    17061709        Message(" <empty>");
    17071710
    1708     Message("--------- GROUPING LIST -----------------");
    1709     Message("The following servers and/or services will be grouping under a single run fits file:");
     1711    Message("-------------- GROUPING LIST -------------");
     1712    Message("The following servers and/or services will");
     1713    Message("be grouped into a single fits file:");
    17101714    for (set<string>::iterator it=fGrouping.begin(); it != fGrouping.end(); it++)
    1711         Message(*it);
     1715        Message(" -> "+*it);
    17121716    if (fGrouping.size()==0)
    17131717        Message(" <no grouping>");
    17141718
    1715     Message("-----------------------------------------");
    1716     Message("------ END OF DATA LOGGER STATE ---------");
    1717     Message("-----------------------------------------");
     1719    Message("------------------------------------------");
     1720    Message("-------- END OF DATA LOGGER STATE --------");
     1721    Message("------------------------------------------");
    17181722
    17191723    return GetCurrentState();
Note: See TracChangeset for help on using the changeset viewer.