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/WANDiscoverable.cc

    r8351 r8807  
    4444  {
    4545    /* debugging output */
    46     COUT(4) << "Creating WANDiscoverable.\n";
     46    orxout(verbose, context::master_server) << "Creating WANDiscoverable." << endl;
    4747 
    4848    /* register object in orxonox */
     
    9191    if( msc.initialize() )
    9292    {
    93       COUT(2) << "Error: could not initialize master server communications!\n";
     93      orxout(internal_error, context::master_server) << "Could not initialize master server communications!" << endl;
    9494      return false;
    9595    }
     
    9898    if( msc.connect( this->msaddress.c_str(), ORX_MSERVER_PORT ) )
    9999    {
    100       COUT(2) << "Error: could not connect to master server at "
    101                  << this->msaddress << std::endl;
     100      orxout(internal_error, context::master_server) << "Could not connect to master server at "
     101                 << this->msaddress << endl;
    102102      return false;
    103103    }
    104104                 
    105105    /* debugging output */
    106     COUT(4) << "Initialization of WANDiscoverable complete.\n";
     106    orxout(verbose, context::master_server) << "Initialization of WANDiscoverable complete." << endl;
    107107   
    108108   
Note: See TracChangeset for help on using the changeset viewer.