Changeset 10896 for trunk/FACT++
- Timestamp:
- 06/01/11 10:20:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dataLogger.cc
r10895 r10896 1631 1631 int DataLogger::PrintStatePlease(const Event& ) 1632 1632 { 1633 Message("-----------------------------------------"); 1634 Message("------ DATA LOGGER CURRENT STATE --------"); 1635 Message("-----------------------------------------"); 1633 Message("------------------------------------------"); 1634 Message("------- DATA LOGGER CURRENT STATE --------"); 1635 Message("------------------------------------------"); 1636 1636 1637 //print the path configuration 1637 1638 Message("Nightly Path: " + CheckIfDirIsDot(fNightlyFilePath)); … … 1644 1645 str << "\n" << it->runNumber; 1645 1646 Message(str); 1646 Message("----------- OPENED FILES ----------------"); 1647 1647 1648 //print all the open files. 1649 Message("------------ OPENED FILES ----------------"); 1648 1650 if (fNightlyLogFile.is_open()) 1649 Message("Nightly Log..........OPEN");1651 Message("Nightly log-file: "/*+filename+*/" (OPEN)"); 1650 1652 else 1651 Message("Nightly log ........CLOSED");1653 Message("Nightly log-file: "/*filename+*/" (CLOSED)"); 1652 1654 if (fNightlyReportFile.is_open()) 1653 Message("Nightly Report.......OPEN");1655 Message("Nightly report-file: "/*filename+*/" (OPEN)"); 1654 1656 else 1655 Message("Nightly Report.....CLOSED");1657 Message("Nightly report-file: "/*filename+*/" (CLOSED)"); 1656 1658 for (list<RunNumberType>::iterator it=fRunNumber.begin(); it!=fRunNumber.end(); it++) 1657 1659 { 1658 1660 if (it->logFile->is_open()) 1659 Message("Run Log " + it->logName + " is OPEN");1661 Message("Run log-file: " + it->logName + " (OPEN)"); 1660 1662 else 1661 Message("Run Log " + it->logName + " is CLOSED");1663 Message("Run log-file: " + it->logName + " (CLOSED)"); 1662 1664 if (it->reportFile->is_open()) 1663 Message("Run Report " + it->reportName + " is OPEN");1665 Message("Run report-file: " + it->reportName + " (OPEN)"); 1664 1666 else 1665 Message("Run Report " + it->reportName + " CLOSED"); 1666 } 1667 Message("Run report-file: " + it->reportName + " (CLOSED)"); 1668 } 1669 1667 1670 bool statWarning = false; 1668 1671 DataLoggerStats statVar; 1669 1672 calculateTotalSizeWritten(statVar, statWarning, false); 1670 Message("---------------- STATS ------------------");1673 Message("----------------- STATS ------------------"); 1671 1674 str.str(""); 1672 1675 str << "Total Size written: " << statVar.sizeWritten << " bytes."; … … 1681 1684 else 1682 1685 Message("Statistics updates are currently disabled"); 1683 Message("----------- DIM SUBSCRIPTIONS -----------"); 1684 1686 1687 Message("------------ DIM SUBSCRIPTIONS -----------"); 1685 1688 str.str(""); 1686 str << "There are " << fNumSubAndFitsData.numSubscriptions << " active DIM subscriptions :";1689 str << "There are " << fNumSubAndFitsData.numSubscriptions << " active DIM subscriptions."; 1687 1690 Message(str); 1688 1691 … … 1694 1697 } 1695 1698 1696 Message("------------- BLOCK LIST ----------------");1699 Message("--------------- BLOCK LIST ---------------"); 1697 1700 for (set<string>::iterator it=fBlackList.begin(); it != fBlackList.end(); it++) 1698 Message( *it);1701 Message(" -> "+*it); 1699 1702 if (fBlackList.size()==0) 1700 1703 Message(" <empty>"); 1701 1704 1702 Message("----------- ALLOW LIST ------------------");1705 Message("--------------- ALLOW LIST ---------------"); 1703 1706 for (set<string>::iterator it=fWhiteList.begin(); it != fWhiteList.end(); it++) 1704 Message( *it);1707 Message(" -> "+*it); 1705 1708 if (fWhiteList.size()==0) 1706 1709 Message(" <empty>"); 1707 1710 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:"); 1710 1714 for (set<string>::iterator it=fGrouping.begin(); it != fGrouping.end(); it++) 1711 Message( *it);1715 Message(" -> "+*it); 1712 1716 if (fGrouping.size()==0) 1713 1717 Message(" <no grouping>"); 1714 1718 1715 Message("----------------------------------------- ");1716 Message("------ END OF DATA LOGGER STATE ---------");1717 Message("----------------------------------------- ");1719 Message("------------------------------------------"); 1720 Message("-------- END OF DATA LOGGER STATE --------"); 1721 Message("------------------------------------------"); 1718 1722 1719 1723 return GetCurrentState();
Note:
See TracChangeset
for help on using the changeset viewer.