As these traces are the traces generated by Statslog macro, is it possible
to replace the definition of Statslog in case LDAP_DEBUG is defined and
LDAP_SYSLOG is not, to use lutil_debug instead of fprintf (stderr) ?
That is, in slap.h, replace
[...]
#elif defined(LDAP_DEBUG)
#define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) \
do { \
if ( ldap_debug & (level) ) \
fprintf( stderr, (fmt), (connid), (opid), (arg1),
(arg2), (arg3) );\
} while (0)
[...]
with
[...]
#elif defined(LDAP_DEBUG)
#define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) \
do { \
if ( ldap_debug & (level) ) \
{ \
lutil_debug( ldap_debug, (level), (fmt), (connid),
(opid), (arg1), (arg2), (arg3) ); \
}\
} while (0)
[...]