From 434c306cbefeafe40f638ed3df93d630c996f9e5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 21 Feb 2018 19:50:45 +0000 Subject: [PATCH] Add debug msg if adding entry to logDB fails --- servers/slapd/overlays/accesslog.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5