]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd increase a debug level
authorChristian Ambach <ambi@samba.org>
Fri, 4 Nov 2011 16:34:48 +0000 (17:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Nov 2011 18:46:51 +0000 (19:46 +0100)
logging disconnected clients with level 1 swamps the logs

(This fixes Bug #8585 Disconnecting clients swamp the logs)

source3/smbd/process.c

index a33746969bca9966ffc687f0de35a7a531a0b1fc..b3704233ad85d8caac0ea0a9eb3c0fde4a5eea8d 100644 (file)
@@ -451,9 +451,10 @@ 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",
-                         sconn->client_id.addr, 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",
+                      sconn->client_id.addr, nt_errstr(status)));
                return status;
        }