From: Howard Chu Date: Fri, 12 Jan 2007 09:59:15 +0000 (+0000) Subject: Log errors in delta sync X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~191 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f2be5ad0e71c307febc694ee3eabf30f6b3ebb55;p=openldap Log errors in delta sync --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 67c0f8cd46..33e4534425 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1298,7 +1298,7 @@ syncrepl_message_to_op( } else { op->orm_modlist = modlist; rc = op->o_bd->be_modify( op, &rs ); - Debug( LDAP_DEBUG_SYNC, + Debug( rc ? LDAP_DEBUG_ANY : LDAP_DEBUG_SYNC, "syncrepl_message_to_op: rid %03ld be_modify %s (%d)\n", si->si_rid, op->o_req_dn.bv_val, rc ); } @@ -1327,13 +1327,13 @@ syncrepl_message_to_op( goto done; rc = op->o_bd->be_modrdn( op, &rs ); slap_mods_free( op->orr_modlist, 1 ); - Debug( LDAP_DEBUG_SYNC, + Debug( rc ? LDAP_DEBUG_ANY : LDAP_DEBUG_SYNC, "syncrepl_message_to_op: rid %03ld be_modrdn %s (%d)\n", si->si_rid, op->o_req_dn.bv_val, rc ); break; case LDAP_REQ_DELETE: rc = op->o_bd->be_delete( op, &rs ); - Debug( LDAP_DEBUG_SYNC, + Debug( rc ? LDAP_DEBUG_ANY : LDAP_DEBUG_SYNC, "syncrepl_message_to_op: rid %03ld be_delete %s (%d)\n", si->si_rid, op->o_req_dn.bv_val, rc ); break;