From: Björn Jacke Date: Sun, 23 Jan 2022 11:35:22 +0000 (+0100) Subject: s4:librpc: raise log level for failed connection attempts X-Git-Tag: tdb-1.4.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=809f4fe2c7862f25547cbdcf01160537e43e3f95;p=thirdparty%2Fsamba.git 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 Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Sun Jan 23 12:51:44 UTC 2022 on sn-devel-184 --- diff --git a/source4/librpc/rpc/dcerpc_sock.c b/source4/librpc/rpc/dcerpc_sock.c index e7ecca73e3c..ec5a5ca8f8e 100644 --- a/source4/librpc/rpc/dcerpc_sock.c +++ b/source4/librpc/rpc/dcerpc_sock.c @@ -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);