]> 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)
committerHoward Chu <hyc@openldap.org>
Wed, 21 Feb 2018 19:50:45 +0000 (19:50 +0000)
servers/slapd/overlays/accesslog.c

index e7df2bbdee1b199747b5fcf74d6b82f759a59bf4..77d2c9fddc7c76d4af0e20f3eece7c5bc9cb8b2a 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;