]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Improved error logging pulled from HEAD
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 12 Jan 2007 22:39:25 +0000 (22:39 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 12 Jan 2007 22:39:25 +0000 (22:39 +0000)
servers/slapd/syncrepl.c

index 4dedf1e8a35368b9807af9f1c7245f996f88b5dc..e831b962a6a03dfe0ee895a05b679333ac5cf8ae 100644 (file)
@@ -1382,7 +1382,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 %03d be_modify %s (%d)\n", 
                                si->si_rid, op->o_req_dn.bv_val, rc );
                }
@@ -1407,13 +1407,13 @@ syncrepl_message_to_op(
                op->orr_nnewrdn = nrdn;
                op->orr_deleteoldrdn = deleteOldRdn;
                rc = op->o_bd->be_modrdn( op, &rs );
-               Debug( LDAP_DEBUG_SYNC,
+               Debug( rc ? LDAP_DEBUG_ANY : LDAP_DEBUG_SYNC,
                        "syncrepl_message_to_op: rid %03d 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 %03d be_delete %s (%d)\n", 
                        si->si_rid, op->o_req_dn.bv_val, rc );
                break;