Changeset 156bbd7
- Timestamp:
- 2010-04-13T23:55:30Z (15 years ago)
- Branches:
- master
- Children:
- 21c87a7, f9ed311
- Parents:
- c0417e8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
bitlbee.c
rc0417e8 r156bbd7 42 42 FILE *fp; 43 43 44 log_link( LOGLVL_ERROR, LOGOUTPUT_ SYSLOG);45 log_link( LOGLVL_WARNING, LOGOUTPUT_ SYSLOG);44 log_link( LOGLVL_ERROR, LOGOUTPUT_CONSOLE ); 45 log_link( LOGLVL_WARNING, LOGOUTPUT_CONSOLE ); 46 46 47 47 memset( &hints, 0, sizeof( hints ) ); … … 146 146 #endif 147 147 148 if( !global.conf->nofork ) 149 { 150 log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG ); 151 log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG ); 152 } 153 148 154 return( 0 ); 149 155 } -
log.c
rc0417e8 r156bbd7 172 172 fprintf(stdout, "Debug: %s\n", message); 173 173 #endif 174 /* Always log stuff in syslogs too. */ 175 log_syslog(level, message); 174 176 return; 175 177 } -
unix.c
rc0417e8 r156bbd7 73 73 74 74 i = bitlbee_inetd_init(); 75 log_message( LOGLVL_INFO, "Bitl bee %s starting in inetd mode.", BITLBEE_VERSION );75 log_message( LOGLVL_INFO, "BitlBee %s starting in inetd mode.", BITLBEE_VERSION ); 76 76 77 77 } 78 78 else if( global.conf->runmode == RUNMODE_DAEMON ) 79 79 { 80 log_link( LOGLVL_ERROR, LOGOUTPUT_ SYSLOG);81 log_link( LOGLVL_WARNING, LOGOUTPUT_ SYSLOG);80 log_link( LOGLVL_ERROR, LOGOUTPUT_CONSOLE ); 81 log_link( LOGLVL_WARNING, LOGOUTPUT_CONSOLE ); 82 82 83 83 i = bitlbee_daemon_init(); 84 log_message( LOGLVL_INFO, "Bitl bee %s starting in daemon mode.", BITLBEE_VERSION );84 log_message( LOGLVL_INFO, "BitlBee %s starting in daemon mode.", BITLBEE_VERSION ); 85 85 } 86 86 else if( global.conf->runmode == RUNMODE_FORKDAEMON ) 87 87 { 88 log_link( LOGLVL_ERROR, LOGOUTPUT_CONSOLE ); 89 log_link( LOGLVL_WARNING, LOGOUTPUT_CONSOLE ); 90 88 91 /* In case the operator requests a restart, we need this. */ 89 92 old_cwd = g_malloc( 256 ); … … 96 99 97 100 i = bitlbee_daemon_init(); 98 log_message( LOGLVL_INFO, "Bitl bee %s starting in forking daemon mode.", BITLBEE_VERSION );101 log_message( LOGLVL_INFO, "BitlBee %s starting in forking daemon mode.", BITLBEE_VERSION ); 99 102 } 100 103 if( i != 0 )
Note: See TracChangeset
for help on using the changeset viewer.