mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Added/Modified LDAP_LOG messages to match the existing Debug messages
This commit is contained in:
parent
d8413fac32
commit
e89c8b4f63
2 changed files with 8 additions and 4 deletions
|
|
@ -15,5 +15,9 @@
|
||||||
|
|
||||||
void bdb_errcall( const char *pfx, char * msg )
|
void bdb_errcall( const char *pfx, char * msg )
|
||||||
{
|
{
|
||||||
|
#ifdef NEW_LOGGING
|
||||||
|
LDAP_LOG (( "error", LDAP_LEVEL_INFO, "bdb(%s): %s\n", pfx, msg ));
|
||||||
|
#else
|
||||||
Debug( LDAP_DEBUG_ANY, "bdb(%s): %s\n", pfx, msg, 0 );
|
Debug( LDAP_DEBUG_ANY, "bdb(%s): %s\n", pfx, msg, 0 );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ bdb_key_read(
|
||||||
|
|
||||||
if( rc != LDAP_SUCCESS ) {
|
if( rc != LDAP_SUCCESS ) {
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "index", LDAP_LEVEL_ENTRY,
|
LDAP_LOG(( "index", LDAP_LEVEL_ERR,
|
||||||
"bdb_key_read: failed (%d)\n",
|
"bdb_key_read: failed (%d)\n",
|
||||||
rc ));
|
rc ));
|
||||||
#else
|
#else
|
||||||
|
|
@ -52,7 +52,7 @@ bdb_key_read(
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "index", LDAP_LEVEL_ENTRY,
|
LDAP_LOG(( "index", LDAP_LEVEL_DETAIL1,
|
||||||
"bdb_key_read: %ld candidates\n", (long) BDB_IDL_N(ids) ));
|
"bdb_key_read: %ld candidates\n", (long) BDB_IDL_N(ids) ));
|
||||||
#else
|
#else
|
||||||
Debug( LDAP_DEBUG_TRACE, "<= bdb_index_read %ld candidates\n",
|
Debug( LDAP_DEBUG_TRACE, "<= bdb_index_read %ld candidates\n",
|
||||||
|
|
@ -78,7 +78,7 @@ bdb_key_change(
|
||||||
DBT key;
|
DBT key;
|
||||||
|
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "index", LDAP_LEVEL_ENTRY,
|
LDAP_LOG(( "index", LDAP_LEVEL_DETAIL1,
|
||||||
"key_change: %s ID %lx\n",
|
"key_change: %s ID %lx\n",
|
||||||
op == SLAP_INDEX_ADD_OP ? "Add" : "Delete", (long) id ));
|
op == SLAP_INDEX_ADD_OP ? "Add" : "Delete", (long) id ));
|
||||||
#else
|
#else
|
||||||
|
|
@ -99,7 +99,7 @@ bdb_key_change(
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "index", LDAP_LEVEL_ENTRY,
|
LDAP_LOG(( "index", LDAP_LEVEL_RESULTS,
|
||||||
"key_change: return %d\n", rc ));
|
"key_change: return %d\n", rc ));
|
||||||
#else
|
#else
|
||||||
Debug( LDAP_DEBUG_TRACE, "<= key_change %d\n", rc, 0, 0 );
|
Debug( LDAP_DEBUG_TRACE, "<= key_change %d\n", rc, 0, 0 );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue