mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix LDAP_DEBUG/LDAP_SYSLOG test
This commit is contained in:
parent
b21e69db0e
commit
3955eaede2
@ -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 );
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user