1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s4:librpc: raise log level for failed connection attempts

this keeps the log files silent when other DCs are currently not running. We
saw frequent NT_STATUS_HOST_UNREACHABLE messages at log level 0 for now.

https://bugzilla.samba.org/show_bug.cgi?id=11537

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Jan 23 12:51:44 UTC 2022 on sn-devel-184
This commit is contained in:
Björn Jacke 2022-01-23 12:35:22 +01:00 committed by Stefan Metzmacher
parent fa5413b63c
commit 809f4fe2c7

View File

@ -58,9 +58,9 @@ static void continue_socket_connect(struct composite_context *ctx)
c->status = socket_connect_recv(ctx);
if (!NT_STATUS_IS_OK(c->status)) {
DEBUG(0, ("Failed to connect host %s on port %d - %s\n",
DBG_NOTICE("Failed to connect host %s on port %d - %s\n",
s->server->addr, s->server->port,
nt_errstr(c->status)));
nt_errstr(c->status));
composite_error(c, c->status);
return;
}
@ -240,9 +240,9 @@ static void continue_ip_open_socket(struct composite_context *ctx)
c->status = dcerpc_pipe_open_socket_recv(ctx, s, &localaddr);
if (!NT_STATUS_IS_OK(c->status)) {
/* something went wrong... */
DEBUG(0, ("Failed to connect host %s (%s) on port %d - %s.\n",
DBG_NOTICE("Failed to connect host %s (%s) on port %d - %s.\n",
s->addresses[s->index - 1], s->target_hostname,
s->port, nt_errstr(c->status)));
s->port, nt_errstr(c->status));
if (s->addresses[s->index]) {
struct composite_context *sock_ip_req;
talloc_free(s->srvaddr);