]> git.sur5r.net Git - openldap/commitdiff
Add debug msg if adding entry to logDB fails
authorHoward Chu <hyc@openldap.org>
Wed, 21 Feb 2018 19:50:45 +0000 (19:50 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 21 Feb 2018 20:21:25 +0000 (20:21 +0000)
servers/slapd/overlays/accesslog.c

index 1d02642db2b4426f309ddf4d351e00b56a348006..207cb8e05dcc63c20e5fc8371abbdc46552707d4 100644 (file)
@@ -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;