=== modified file 'bitlbee.c'
--- bitlbee.c	2007-11-05 22:59:49 +0000
+++ bitlbee.c	2007-11-17 21:01:26 +0000
@@ -43,6 +43,10 @@
 	
 	log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG );
 	log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG );
+#ifdef DEBUG
+	log_link( LOGLVL_INFO, LOGOUTPUT_CONSOLE );
+	log_link( LOGLVL_DEBUG, LOGOUTPUT_CONSOLE );
+#endif
 	
 	memset( &hints, 0, sizeof( hints ) );
 	hints.ai_family = PF_UNSPEC;
@@ -109,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
 	


