Commit 3955eaed authored by Howard Chu's avatar Howard Chu
Browse files

Fix LDAP_DEBUG/LDAP_SYSLOG test

parent b21e69db
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment