]> git.sur5r.net Git - openldap/commitdiff
Added LDAP_LOG messages
authorJulius Enarusai <julius@openldap.org>
Tue, 26 Mar 2002 18:01:58 +0000 (18:01 +0000)
committerJulius Enarusai <julius@openldap.org>
Tue, 26 Mar 2002 18:01:58 +0000 (18:01 +0000)
servers/slapd/back-bdb/dbcache.c

index 36c4daee187fbbb7330e7460bb1fa45cb4e10e60..df6e667738e2cc823bb599233f96491c66c02dc6 100644 (file)
@@ -78,9 +78,13 @@ bdb_db_cache(
 
        rc = db_create( &db->bdi_db, bdb->bi_dbenv, 0 );
        if( rc != 0 ) {
+#ifdef NEW_LOGGING
+               LDAP_LOG (( "dbcache", LDAP_LEVEL_ERR, "bdb_db_cache: db_create(%s) failed: %s (%d)\n", bdb->bi_dbenv_home, db_strerror(rc), rc ));
+#else
                Debug( LDAP_DEBUG_ANY,
                        "bdb_db_cache: db_create(%s) failed: %s (%d)\n",
                        bdb->bi_dbenv_home, db_strerror(rc), rc );
+#endif
                ldap_pvt_thread_mutex_unlock( &bdb->bi_database_mutex );
                return rc;
        }
@@ -105,9 +109,13 @@ bdb_db_cache(
        ch_free( file );
 
        if( rc != 0 ) {
+#ifdef NEW_LOGGING
+               LDAP_LOG (( "dbcache", LDAP_LEVEL_ERR, "bdb_db_cache: db_open(%s) failed: %s (%d)\n", name, db_strerror(rc), rc ));
+#else
                Debug( LDAP_DEBUG_ANY,
                        "bdb_db_cache: db_open(%s) failed: %s (%d)\n",
                        name, db_strerror(rc), rc );
+#endif
                ldap_pvt_thread_mutex_unlock( &bdb->bi_database_mutex );
                return rc;
        }