diff options
author | Matthieu Patou <mat@matws.net> | 2010-05-10 01:45:01 +0400 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-05-13 19:13:30 +0200 |
commit | f45cbb0a0d26b9126be1057e1856a04cd6113bea (patch) | |
tree | be92dc3af381770bc245499cf01cdb7a66758a3a /source4/dsdb | |
parent | 11730520a742df0f584a9a25762756763517dc4d (diff) | |
download | samba-f45cbb0a0d26b9126be1057e1856a04cd6113bea.tar.gz samba-f45cbb0a0d26b9126be1057e1856a04cd6113bea.tar.xz samba-f45cbb0a0d26b9126be1057e1856a04cd6113bea.zip |
s4: Do not display by default the message Failed to send DsReplicaSync is other host is just unreachable
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/repl/drepl_notify.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/dsdb/repl/drepl_notify.c b/source4/dsdb/repl/drepl_notify.c index 0145b2767ab..8a39745a4e3 100644 --- a/source4/dsdb/repl/drepl_notify.c +++ b/source4/dsdb/repl/drepl_notify.c @@ -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))); |