From: Howard Chu Date: Wed, 21 Feb 2018 19:50:45 +0000 (+0000) Subject: Add debug msg if adding entry to logDB fails X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=434c306cbefeafe40f638ed3df93d630c996f9e5;p=openldap Add debug msg if adding entry to logDB fails --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index e7df2bbdee..77d2c9fddc 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1879,6 +1879,11 @@ static int accesslog_response(Operation *op, SlapReply *rs) { } op2.o_bd->be_add( &op2, &rs2 ); + if ( rs2.sr_err != LDAP_SUCCESS ) { + Debug( LDAP_DEBUG_SYNC, + "accesslog_response: got result 0x%x adding log entry %s\n", + rs2.sr_err, op2.o_req_dn.bv_val, 0 ); + } if ( e == op2.ora_e ) entry_free( e ); e = NULL;