From: Howard Chu Date: Wed, 5 Mar 2003 02:22:58 +0000 (+0000) Subject: Fix LDAP_DEBUG/LDAP_SYSLOG test X-Git-Tag: NO_SLAP_OP_BLOCKS~176 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3955eaede25c82723bb350a74d6a658dda2195ab;p=openldap Fix LDAP_DEBUG/LDAP_SYSLOG test --- diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 885066970e..00e91a3767 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -276,7 +276,6 @@ do_modify( } #endif } -#endif if ( StatslogTest( LDAP_DEBUG_STATS ) ) { char abuf[BUFSIZ/2], *ptr = abuf; @@ -304,6 +303,7 @@ do_modify( op->o_connid, op->o_opid, abuf, 0, 0 ); } } +#endif /* LDAP_DEBUG */ manageDSAit = get_manageDSAit( op ); diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 217d7c44af..4f75559736 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -2036,14 +2036,6 @@ typedef struct slap_conn { fprintf( stderr, (fmt), (connid), (opid), (arg1), (arg2), (arg3) );\ } while (0) #define StatslogTest( level ) (ldap_debug & (level)) -#elif defined(LDAP_SYSLOG) -#define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) \ - do { \ - if ( ldap_syslog & (level) ) \ - syslog( ldap_syslog_level, (fmt), (connid), (opid), (arg1), \ - (arg2), (arg3) ); \ - } while (0) -#define StatslogTest( level ) (ldap_syslog & (level)) #else #define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) #define StatslogTest( level ) (0)