From: Ondřej Kuzník Date: Tue, 1 Jun 2021 12:58:01 +0000 (+0100) Subject: ITS#6467 Indicate which operation is lost if we fail to add log entry X-Git-Tag: OPENLDAP_REL_ENG_2_6_0~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ea78fde20e601db0ddf6bea3684cb52d5801f4d;p=thirdparty%2Fopenldap.git ITS#6467 Indicate which operation is lost if we fail to add log entry --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 11f4e2a95b..0309c81827 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1937,9 +1937,9 @@ 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 ); + Debug( LDAP_DEBUG_SYNC, "%s accesslog_response: " + "got result 0x%x adding log entry %s\n", + op->o_log_prefix, rs2.sr_err, op2.o_req_dn.bv_val ); } if ( e == op2.ora_e ) entry_free( e ); e = NULL;