summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2015-06-25 18:44:44 +0200
committerRalph Böhme <slow@samba.org>2015-07-16 20:24:47 +0200
commitf58ecfdbfc70ea76ca330e9fc551df0d22b6baa4 (patch)
tree576898be8da388d7c83e1a61ffd2885943f64d51 /source3
parent5b3ed904ca6689801dacc79ba6983ef3a41a14f6 (diff)
downloadsamba-f58ecfdbfc70ea76ca330e9fc551df0d22b6baa4.tar.gz
s3:smbd: change a loglevel from 0 to 1 when SMB_VFS_CONNECT fails
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 <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Jul 16 20:24:47 CEST 2015 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/service.c4
1 files changed, 3 insertions, 1 deletions
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;
}