ITS#5392 use lutil_debug for Statslog if HAVE_DEBUG && !HAVE_SYSLOG

This commit is contained in:
Howard Chu 2009-02-10 11:16:31 +00:00
parent a86653c3d9
commit 6a838df274

View file

@ -2887,7 +2887,7 @@ struct Connection {
#define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) \
do { \
if ( ldap_debug & (level) ) \
fprintf( stderr, (fmt), (connid), (opid), (arg1), (arg2), (arg3) );\
lutil_debug( ldap_debug, (level), (fmt), (connid), (opid), (arg1), (arg2), (arg3) );\
} while (0)
#define StatslogTest( level ) (ldap_debug & (level))
#endif /* !LDAP_SYSLOG */