Changeset 13068 for trunk/FACT++/src


Ignore:
Timestamp:
03/11/12 20:00:53 (13 years ago)
Author:
tbretz
Message:
Removed some old debug output when commands are issued.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r12907 r13068  
    676676    const string fmt = t->second.first;
    677677
     678    // Avoid compiler warning of unused parameter
     679    lout << flush;
     680
    678681    // Convert the user entered data according to the format string
    679682    // into a data block which will be attached to the event
     683#ifndef DEBUG
     684    ostringstream sout;
     685    const Converter conv(sout, fmt, false);
     686#else
    680687    const Converter conv(lout, fmt, false);
     688#endif
    681689    if (!conv)
    682690        throw runtime_error("Couldn't properly parse the format... ignored.");
    683691
     692#ifdef DEBUG
    684693    lout << kBlue << cmd;
     694#endif
    685695    const vector<char> v = conv.GetVector(str.substr(p0));
     696#ifdef DEBUG
    686697    lout << endl;
     698#endif
    687699
    688700    const int rc = DimClient::sendCommand(cmd.c_str(), (void*)v.data(), v.size());
  • trunk/FACT++/src/StateMachineImp.cc

    r12126 r13068  
    250250    // Convert the user entered data according to the format string
    251251    // into a data block which will be attached to the event
     252#ifndef DEBUG
     253    ostringstream sout;
     254    const Converter conv(sout, fmt, false);
     255#else
    252256    const Converter conv(lout, fmt, false);
     257#endif
    253258    if (!conv)
    254259    {
     
    259264    try
    260265    {
     266#ifdef DEBUG
    261267        lout << kBlue << name;
     268#endif
    262269        const vector<char> v = conv.GetVector(str.substr(p0));
     270#ifdef DEBUG
    263271        lout << endl;
     272#endif
    264273
    265274        return PostEvent(*evt, v.data(), v.size());
     
    313322    {
    314323        Event *event = new Event(evt, ptr, siz);
    315         Debug("Posted: "+event->GetName());
     324        //Debug("Posted: "+event->GetName());
    316325        PushEvent(event);
    317326    }
Note: See TracChangeset for help on using the changeset viewer.