2001-11-27 11:41:03 +08:00
|
|
|
/* error.c - BDB errcall routine */
|
2000-09-19 09:59:08 +08:00
|
|
|
/* $OpenLDAP$ */
|
|
|
|
/*
|
2002-01-05 05:17:25 +08:00
|
|
|
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
|
2000-09-19 09:59:08 +08: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-16 01:50:28 +08:00
|
|
|
#ifdef NEW_LOGGING
|
2002-07-12 04:33:24 +08:00
|
|
|
LDAP_LOG ( OPERATION, INFO, "bdb(%s): %s\n", pfx, msg, 0 );
|
2002-03-16 01:50:28 +08:00
|
|
|
#else
|
2000-10-02 03:21:07 +08:00
|
|
|
Debug( LDAP_DEBUG_ANY, "bdb(%s): %s\n", pfx, msg, 0 );
|
2002-03-16 01:50:28 +08:00
|
|
|
#endif
|
2000-09-19 09:59:08 +08:00
|
|
|
}
|