=== modified file 'bitlbee.c' --- bitlbee.c 2007-11-17 20:38:50 +0000 +++ bitlbee.c 2007-11-22 17:01:56 +0000 @@ -43,9 +43,9 @@ log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG ); log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG ); - log_link( LOGLVL_INFO, LOGOUTPUT_SYSLOG ); #ifdef DEBUG - log_link( LOGLVL_DEBUG, LOGOUTPUT_SYSLOG ); + log_link( LOGLVL_INFO, LOGOUTPUT_CONSOLE ); + log_link( LOGLVL_DEBUG, LOGOUTPUT_CONSOLE ); #endif memset( &hints, 0, sizeof( hints ) ); @@ -113,9 +113,11 @@ /* Sometimes std* are already closed (for example when we're in a RESTARTed BitlBee process. So let's only close TTY-fds. */ +#ifndef DEBUG if( isatty( 0 ) ) close( 0 ); if( isatty( 1 ) ) close( 1 ); if( isatty( 2 ) ) close( 2 ); +#endif } #endif