2001-11-26 22:41:03 -05:00
|
|
|
/* error.c - BDB errcall routine */
|
2000-09-18 21:59:08 -04:00
|
|
|
/* $OpenLDAP$ */
|
|
|
|
|
/*
|
2002-01-04 16:17:25 -05:00
|
|
|
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
|
2000-09-18 21:59:08 -04:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "portable.h"
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <ac/string.h>
|
|
|
|
|
|
|
|
|
|
#include "slap.h"
|
|
|
|
|
#include "back-bdb.h"
|
|
|
|
|
|
|
|
|
|
void bdb_errcall( const char *pfx, char * msg )
|
|
|
|
|
{
|
2002-03-15 12:50:28 -05:00
|
|
|
#ifdef NEW_LOGGING
|
|
|
|
|
LDAP_LOG (( "error", LDAP_LEVEL_INFO, "bdb(%s): %s\n", pfx, msg ));
|
|
|
|
|
#else
|
2000-10-01 15:21:07 -04:00
|
|
|
Debug( LDAP_DEBUG_ANY, "bdb(%s): %s\n", pfx, msg, 0 );
|
2002-03-15 12:50:28 -05:00
|
|
|
#endif
|
2000-09-18 21:59:08 -04:00
|
|
|
}
|