From f58ecfdbfc70ea76ca330e9fc551df0d22b6baa4 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 25 Jun 2015 18:44:44 +0200 Subject: [PATCH] s3:smbd: change a loglevel from 0 to 1 when SMB_VFS_CONNECT fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Logging at level 0 may result in log flooding. Additionally log the share name that failed in SMB_VFS_CONNECT. Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Thu Jul 16 20:24:47 CEST 2015 on sn-devel-104 --- source3/smbd/service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 05449672fb7..ba8946d5d2f 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -669,7 +669,9 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn, if (SMB_VFS_CONNECT(conn, lp_servicename(talloc_tos(), snum), conn->session_info->unix_info->unix_name) < 0) { - DEBUG(0,("make_connection: VFS make connection failed!\n")); + DBG_WARNING("SMB_VFS_CONNECT for service '%s' at '%s' failed: %s\n", + lp_servicename(talloc_tos(), snum), conn->connectpath, + strerror(errno)); status = NT_STATUS_UNSUCCESSFUL; goto err_root_exit; } -- 2.11.4.GIT