mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
Conditionalize use of vsyslog
This commit is contained in:
parent
ee705326d4
commit
f0b25d7b2c
1 changed files with 6 additions and 1 deletions
|
|
@ -164,7 +164,12 @@ void lutil_log_int(
|
|||
#ifdef LDAP_SYSLOG
|
||||
/* we're configured to use syslog */
|
||||
if( use_syslog ) {
|
||||
#ifdef HAVE_VSYSLOG
|
||||
vsyslog( debug2syslog(level), fmt, vl );
|
||||
#else
|
||||
vsnprintf( data, sizeof(data), fmt, vl );
|
||||
syslog( debug2syslog(level), data );
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
|
@ -317,6 +322,6 @@ void (lutil_debug)( int debug, int level, const char *fmt, ... )
|
|||
fflush( log_file );
|
||||
}
|
||||
|
||||
fputs( buffer, stderr );
|
||||
fputs( buffer, stderr );
|
||||
va_end( vl );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue