Fix LDAP_DEBUG/LDAP_SYSLOG test

This commit is contained in:
Howard Chu 2003-03-05 02:22:58 +00:00
parent b21e69db0e
commit 3955eaede2
2 changed files with 1 additions and 9 deletions

View File

@ -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 );

View File

@ -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)