- laeuft der ngIRCd im Vordergrund, so wird syslog nicht mehr benutzt.
This commit is contained in:
parent
4d46eac733
commit
d040fa2a7d
|
@ -9,7 +9,7 @@
|
|||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||
*
|
||||
* $Id: log.c,v 1.36 2002/09/03 17:25:45 alex Exp $
|
||||
* $Id: log.c,v 1.37 2002/09/09 22:55:21 alex Exp $
|
||||
*
|
||||
* log.c: Logging-Funktionen
|
||||
*/
|
||||
|
@ -181,6 +181,13 @@ va_dcl
|
|||
fprintf( stdout, "[%d] %s\n", Level, msg );
|
||||
fflush( stdout );
|
||||
}
|
||||
#ifdef USE_SYSLOG
|
||||
else
|
||||
{
|
||||
/* Syslog */
|
||||
syslog( Level, msg );
|
||||
}
|
||||
#endif
|
||||
|
||||
if( Level <= LOG_CRIT )
|
||||
{
|
||||
|
@ -189,11 +196,6 @@ va_dcl
|
|||
fflush( stderr );
|
||||
}
|
||||
|
||||
#ifdef USE_SYSLOG
|
||||
/* Syslog */
|
||||
syslog( Level, msg );
|
||||
#endif
|
||||
|
||||
if( snotice )
|
||||
{
|
||||
/* NOTICE an lokale User mit "s"-Mode */
|
||||
|
@ -242,6 +244,8 @@ va_dcl
|
|||
|
||||
assert( Format != NULL );
|
||||
|
||||
if( NGIRCd_NoDaemon ) return;
|
||||
|
||||
#ifdef DEBUG
|
||||
if(( Level == LOG_DEBUG ) && ( ! NGIRCd_Debug )) return;
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue