s4: Do not display by default the message Failed to send DsReplicaSync is other host...
authorMatthieu Patou <mat@matws.net>
Sun, 9 May 2010 21:45:01 +0000 (01:45 +0400)
committerStefan Metzmacher <metze@samba.org>
Thu, 13 May 2010 17:13:30 +0000 (19:13 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/dsdb/repl/drepl_notify.c

index 0145b2767abc2c3188dc544bd4b4b92391ea51f9..8a39745a4e3fce8a2678aeaedb0875b0a6aa15e0 100644 (file)
@@ -194,9 +194,14 @@ static void dreplsrv_notify_op_callback(struct tevent_req *subreq)
        TALLOC_FREE(subreq);
        if (!NT_STATUS_IS_OK(status)) {
                WERROR werr;
+               unsigned int msg_debug_level = 0;
                werr = ntstatus_to_werror(status);
+               if (W_ERROR_EQUAL(werr, WERR_BADFILE)) {
+                       msg_debug_level = 1;
+               }
 
-               DEBUG(0,("dreplsrv_notify: Failed to send DsReplicaSync to %s for %s - %s : %s\n",
+               DEBUG(msg_debug_level,
+                       ("dreplsrv_notify: Failed to send DsReplicaSync to %s for %s - %s : %s\n",
                         op->source_dsa->repsFrom1->other_info->dns_name,
                         ldb_dn_get_linearized(op->source_dsa->partition->dn),
                         nt_errstr(status), win_errstr(werr)));