streamline some log levels for invalid servicenames
authorChristian Ambach <christian.ambach@de.ibm.com>
Wed, 2 Dec 2009 19:06:37 +0000 (20:06 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 7 Dec 2009 22:33:33 +0000 (23:33 +0100)
I don't think we need to log the fact that a user gave a wrong sharename in Explorer with the highest log level.
The level of this was not very consistent:
service.c: DEBUG(3,("find_service() failed to find service %s\n", service));
service.c: DEBUG(0,("%s (%s) couldn't find service %s\n",
smb2_tcon.c: DEBUG(1,("smbd_smb2_tree_connect: couldn't find service %s\n",

This changes the last two to 3 as the first one.

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
source3/smbd/service.c

index 2dd784ba4c93c12e76bd2787af92b30b5962d6eb..e87c9f7890a2a9c20ccd5aec72d500b8ac6c16fe 100644 (file)
@@ -1182,7 +1182,7 @@ connection_struct *make_connection(const char *service_in, DATA_BLOB password,
                        return NULL;
                }
 
-               DEBUG(0,("%s (%s) couldn't find service %s\n",
+               DEBUG(3,("%s (%s) couldn't find service %s\n",
                        get_remote_machine_name(),
                        client_addr(get_client_fd(),addr,sizeof(addr)),
                        service));