Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 3:20:46 AM (16 years ago)
Author:
landauf
Message:
  • changed output from std::cout to COUT(level)
  • added SoftDebugLevel config-variable (its a hack, but it works fine)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/SignalHandler.cc

    r497 r560  
    1414*/
    1515
     16#include <assert.h>
     17
    1618#include "SignalHandler.h"
    17 #include <assert.h>
     19#include "Debug.h"
    1820
    1921SignalHandler * SignalHandler::singletonRef = NULL;
     
    101103  }
    102104
    103   printf( "recieved signal %s\ntry to write backtrace to file orxonox.log\n", sigName.c_str() );
     105  PRINTF(0)( "recieved signal %s\ntry to write backtrace to file orxonox.log\n", sigName.c_str() );
    104106
    105107  int sigPipe[2];
     
    129131    if ( someData != 0x12345678 )
    130132    {
    131       printf("something went wrong :(\n");
     133      PRINTF(0)("something went wrong :(\n");
    132134    }
    133135
     
    278280  if ( fwrite( bt.c_str(), 1, bt.length(), f ) != bt.length() )
    279281  {
    280     printf( ( std::string("could not write %d byte to ") + getInstance()->fileName ).c_str(), bt.length());
     282    PRINTF(0)( ( std::string("could not write %d byte to ") + getInstance()->fileName ).c_str(), bt.length());
    281283    exit(EXIT_FAILURE);
    282284  }
Note: See TracChangeset for help on using the changeset viewer.