An Overlay-based
Virtual Network Substrate
SpoVNet

Changeset 12351


Ignore:
Timestamp:
Aug 31, 2013, 11:26:25 AM (6 years ago)
Author:
s_taenzer@…
Message:

Pingpong: Logging with Log4Cxx doesn't allow endls in the middle, use \n instead
Also initialise counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/pingpong/PingPong.cpp

    r12063 r12351  
    1818PingPong::PingPong( string config)  :
    1919        node(),
     20        counter( 0 ),
    2021        pingId( 0 ),
    2122        config_file(config)
     
    126127   
    127128        pingId++;
    128     logging_info( endl << "|||||||||| >>>>>>>>>>" << endl
     129    logging_info( "\n|||||||||| >>>>>>>>>>\n"
    129130                << "[PINGPONG]\t PINGING overlay neighbors with ping id " << pingId );
    130131        PingPongMessage pingmsg( pingId, name );
     
    182183        for (int i=0;i<names.size(); i++) if (names[i]==pingmsg->getName()) found=true;
    183184        if (!found) names.push_back(pingmsg->getName());
    184         logging_info( endl << "<<<<<<<<<< ||||||||||" << endl
     185        logging_info( "\n<<<<<<<<<< ||||||||||\n"
    185186                << "[PINGPONG]\t RECEIVED ping message on link "
    186187                << lnk.toString()
Note: See TracChangeset for help on using the changeset viewer.