From e89c8b4f637a43c99441738b120e120c84ae9ecd Mon Sep 17 00:00:00 2001 From: Julius Enarusai Date: Fri, 15 Mar 2002 17:50:28 +0000 Subject: [PATCH] Added/Modified LDAP_LOG messages to match the existing Debug messages --- servers/slapd/back-bdb/error.c | 4 ++++ servers/slapd/back-bdb/key.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-bdb/error.c b/servers/slapd/back-bdb/error.c index c2e980ed28..ba96309a39 100644 --- a/servers/slapd/back-bdb/error.c +++ b/servers/slapd/back-bdb/error.c @@ -15,5 +15,9 @@ 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 ); +#endif } diff --git a/servers/slapd/back-bdb/key.c b/servers/slapd/back-bdb/key.c index 4c5d8d4f33..ea6433fa6e 100644 --- a/servers/slapd/back-bdb/key.c +++ b/servers/slapd/back-bdb/key.c @@ -43,7 +43,7 @@ bdb_key_read( if( rc != LDAP_SUCCESS ) { #ifdef NEW_LOGGING - LDAP_LOG(( "index", LDAP_LEVEL_ENTRY, + LDAP_LOG(( "index", LDAP_LEVEL_ERR, "bdb_key_read: failed (%d)\n", rc )); #else @@ -52,7 +52,7 @@ bdb_key_read( #endif } else { #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) )); #else Debug( LDAP_DEBUG_TRACE, "<= bdb_index_read %ld candidates\n", @@ -78,7 +78,7 @@ bdb_key_change( DBT key; #ifdef NEW_LOGGING - LDAP_LOG(( "index", LDAP_LEVEL_ENTRY, + LDAP_LOG(( "index", LDAP_LEVEL_DETAIL1, "key_change: %s ID %lx\n", op == SLAP_INDEX_ADD_OP ? "Add" : "Delete", (long) id )); #else @@ -99,7 +99,7 @@ bdb_key_change( } #ifdef NEW_LOGGING - LDAP_LOG(( "index", LDAP_LEVEL_ENTRY, + LDAP_LOG(( "index", LDAP_LEVEL_RESULTS, "key_change: return %d\n", rc )); #else Debug( LDAP_DEBUG_TRACE, "<= key_change %d\n", rc, 0, 0 ); -- 2.39.5