Changeset 10274


Ignore:
Timestamp:
Mar 30, 2011, 3:59:18 PM (10 years ago)
Author:
tbretz
Message:
Slight modification to logging output, by default now the output of unsuccessfull propagation via the dim service is suppressed.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r10183 r10274  
    3636MessageDimTX::MessageDimTX(const std::string &name, std::ostream &out)
    3737: DimService((name + "/MESSAGE").c_str(), const_cast<char*>("")),
    38 MessageImp(out)
     38MessageImp(out), fDebug(false)
    3939{
    4040    // This is a message which will never arrive because
    4141    // the time to establish a client-sever connection is
    4242    // too short.
    43     Message("MessageDim service started.");
     43    Message("MessageDimTX started.");
    4444}
    4545
     
    5050MessageDimTX::~MessageDimTX()
    5151{
    52     Message("MessageDim service shutting down..");
     52    Message("MessageDimTX shutting down..");
    5353}
    5454
     
    7272    const int rc = updateService();
    7373
    74     if (rc==0)
    75         Out() << " !! " << t.GetAsStr() << ": Sending failed!" << endl;
     74    if (rc==0 && fDebug)
     75        Out() << " !! " << t.GetAsStr() << " - Sending failed!" << endl;
    7676
    7777    return rc;
  • trunk/FACT++/src/MessageDim.h

    r10183 r10274  
    1010class MessageDimTX : public DimService, public MessageImp
    1111{
     12private:
     13    bool fDebug;
     14
    1215public:
    1316    MessageDimTX(const std::string &name, std::ostream &out=std::cout);
     
    1518
    1619    int Write(const Time &t, const char *txt, int qos=kInfo);
     20
     21    void SetDebug(bool b=true) { fDebug=b; }
    1722};
    1823
Note: See TracChangeset for help on using the changeset viewer.