s3:smbd increase a debug level
authorChristian Ambach <ambi@samba.org>
Fri, 4 Nov 2011 16:34:48 +0000 (17:34 +0100)
committerChristian Ambach <ambi@samba.org>
Fri, 4 Nov 2011 16:39:43 +0000 (17:39 +0100)
logging disconnected clients with level 1 swamps the logs

source3/smbd/process.c

index ab0c147007b20a7b0b4bbef671f320042494d5d6..0ad554228b231e59fa7c5e242da2ba4ab3738de2 100644 (file)
@@ -456,11 +456,12 @@ static NTSTATUS receive_smb_talloc(TALLOC_CTX *mem_ctx,
        status = receive_smb_raw_talloc(mem_ctx, sconn, sock, buffer, timeout,
                                        p_unread, &len);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(1, ("read_smb_length_return_keepalive failed for "
-                         "client %s read error = %s.\n",
-                         tsocket_address_string(sconn->remote_address,
-                                                talloc_tos()),
-                         nt_errstr(status)));
+               DEBUG(NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)?5:1,
+                     ("receive_smb_raw_talloc failed for client %s "
+                      "read error = %s.\n",
+                      tsocket_address_string(sconn->remote_address,
+                                             talloc_tos()),
+                      nt_errstr(status)) );
                return status;
        }