]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:librpc: raise log level for failed connection attempts
authorBjörn Jacke <bj@sernet.de>
Sun, 23 Jan 2022 11:35:22 +0000 (12:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 23 Jan 2022 12:51:44 +0000 (12:51 +0000)
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

source4/librpc/rpc/dcerpc_sock.c

index e7ecca73e3c19e9ee31aecca8b4cc47900a2adc6..ec5a5ca8f8ef107dc1be939aa9e9823367f6843c 100644 (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);