Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 31, 2011, 9:09:23 PM (13 years ago)
Author:
landauf
Message:

Replaced COUT with orxout in network library. Tried to set levels and contexts in a more or less useful way, but not really optimized. Used contexts network, packets, and master_server.
Please use endl instead of \n in the future (@smerkli) ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/network/WANDiscovery.cc

    r8351 r8807  
    4545  {
    4646    /* debugging output */
    47     COUT(4) << "Creating WANDiscovery.\n";
     47    orxout(verbose, context::master_server) << "Creating WANDiscovery." << endl;
    4848 
    4949    /* register object in orxonox */
     
    5555    /* initialize it and see if it worked */
    5656    if( msc.initialize() )
    57       COUT(2) << "Error: could not initialize master server communications!\n";
     57      orxout(internal_error, context::master_server) << "Could not initialize master server communications!" << endl;
    5858
    5959    /* connect and see if it worked */
    6060    if( msc.connect( this->msaddress.c_str(), ORX_MSERVER_PORT ) )
    61       COUT(2) << "Error: could not connect to master server at "
    62         << this->msaddress << std::endl;
     61      orxout(internal_error, context::master_server) << "Could not connect to master server at "
     62        << this->msaddress << endl;
    6363
    6464    /* debugging output */
    65     COUT(4) << "Initialization of WANDiscovery complete.\n";
     65    orxout(verbose, context::master_server) << "Initialization of WANDiscovery complete." << endl;
    6666  }
    6767
     
    8585    /* error recognition */
    8686    if( !ev || !ev->packet || !ev->packet->data )
    87     { COUT(2) << "Bad arguments received in WANDiscovery's reply handler.\n";
     87    { orxout(internal_warning, context::master_server) << "Bad arguments received in WANDiscovery's reply handler." << endl;
    8888      return 0;
    8989    }
Note: See TracChangeset for help on using the changeset viewer.