summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2011-11-04 17:34:48 +0100
committerChristian Ambach <ambi@samba.org>2011-11-04 17:39:43 +0100
commitb99becd4fadd3b5a51df4a95164e69345a3aded3 (patch)
tree8b9f0fad233e835299efa4b07372e7a05767501a
parent468fcfd8be4a246d9860272a286eb0fe7555a819 (diff)
downloadsamba-b99becd4fadd3b5a51df4a95164e69345a3aded3.tar.gz
samba-b99becd4fadd3b5a51df4a95164e69345a3aded3.tar.bz2
samba-b99becd4fadd3b5a51df4a95164e69345a3aded3.zip
s3:smbd increase a debug level
logging disconnected clients with level 1 swamps the logs
-rw-r--r--source3/smbd/process.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index ab0c147007..0ad554228b 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -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;
}