]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dbwrap: Improve an error message
authorVolker Lendecke <vl@samba.org>
Mon, 27 Jan 2020 13:15:42 +0000 (14:15 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 10 Feb 2020 18:00:43 +0000 (18:00 +0000)
Include the path where db_open() tried to find the ctdb socket

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/dbwrap/dbwrap_open.c

index 20084bca471744b899bc9a0d5f4c8307b35771aa..eac52c5a4317afd3ce208dea818404f60a2c606f 100644 (file)
@@ -131,8 +131,9 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx,
 
                sockname = lp_ctdbd_socket();
                if (!socket_exist(sockname)) {
-                       DEBUG(1, ("ctdb socket does not exist - is ctdb not "
-                                 "running?\n"));
+                       DBG_WARNING("ctdb socket does %s not exist - "
+                                   "is ctdb not running?\n",
+                                   sockname);
                        return NULL;
                }