https://bugs.openldap.org/show_bug.cgi?id=9726
--- Comment #14 from Shawn McKinney smckinney@symas.com --- Clarifications / Level Set (courtesy of Quanah)
OpenLDAP's C code has two different types of logging:
1. "DEBUG" messages, which confusingly, are what loglevel controls: ``` # loglevel of ACL: aci.c: Debug( LDAP_DEBUG_ACL, "aciNormalizeRight: perms:attr need to be pairs in '%s'\n", action->bv_val );
# loglevel of STATS: delete.c: Debug( LDAP_DEBUG_STATS, "%s DEL dn="%s"\n",
# etc ```
2. The actual debug messages, that only (normally) go to stderr:
like ``` slapmodify.c: fprintf( stderr, "%s: could not %s entry dn="%s" " or (avoiding commandline tools) syncrepl.c: fprintf(stderr, "merge_state: %s si_syncCookie [%d] %d %s\n", syncrepl.c: fprintf(stderr, "merge_state: %s si_cookieState [%d] %d %s\n", ```
When the man page says "debug messages", it's talking about the messages printed to stderr.