Changeset 156bbd7 for unix.c


Ignore:
Timestamp:
2010-04-13T23:55:30Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
21c87a7, f9ed311
Parents:
c0417e8
Message:

Log to stderr+syslog until daemonized. Current behaviour is too confusing
and annoying.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rc0417e8 r156bbd7  
    7373       
    7474                i = bitlbee_inetd_init();
    75                 log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION );
     75                log_message( LOGLVL_INFO, "BitlBee %s starting in inetd mode.", BITLBEE_VERSION );
    7676
    7777        }
    7878        else if( global.conf->runmode == RUNMODE_DAEMON )
    7979        {
    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 );
    8282
    8383                i = bitlbee_daemon_init();
    84                 log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION );
     84                log_message( LOGLVL_INFO, "BitlBee %s starting in daemon mode.", BITLBEE_VERSION );
    8585        }
    8686        else if( global.conf->runmode == RUNMODE_FORKDAEMON )
    8787        {
     88                log_link( LOGLVL_ERROR, LOGOUTPUT_CONSOLE );
     89                log_link( LOGLVL_WARNING, LOGOUTPUT_CONSOLE );
     90
    8891                /* In case the operator requests a restart, we need this. */
    8992                old_cwd = g_malloc( 256 );
     
    9699               
    97100                i = bitlbee_daemon_init();
    98                 log_message( LOGLVL_INFO, "Bitlbee %s starting in forking daemon mode.", BITLBEE_VERSION );
     101                log_message( LOGLVL_INFO, "BitlBee %s starting in forking daemon mode.", BITLBEE_VERSION );
    99102        }
    100103        if( i != 0 )
Note: See TracChangeset for help on using the changeset viewer.