smbd: Log smb2 requests returning !OK with higher log level
authorChristof Schmitt <cs@samba.org>
Wed, 5 Aug 2015 20:31:44 +0000 (13:31 -0700)
committerMichael Adam <obnox@samba.org>
Thu, 6 Aug 2015 20:27:20 +0000 (22:27 +0200)
This can be useful for narrowing down problems without taking a full
level 10 trace.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/smb2_server.c

index a0b1bfc8336374aaaaac58b43f8f3b32a4ef13f2..a53ddf8527d81fa8aaa79e0a43eeca1a1a25fdc5 100644 (file)
@@ -2790,9 +2790,9 @@ NTSTATUS smbd_smb2_request_error_ex(struct smbd_smb2_request *req,
        uint8_t *outhdr = SMBD_SMB2_OUT_HDR_PTR(req);
        size_t unread_bytes = smbd_smb2_unread_bytes(req);
 
-       DEBUG(10,("smbd_smb2_request_error_ex: idx[%d] status[%s] |%s| at %s\n",
-                 req->current_idx, nt_errstr(status), info ? " +info" : "",
-                 location));
+       DBG_NOTICE("smbd_smb2_request_error_ex: idx[%d] status[%s] |%s| "
+                  "at %s\n", req->current_idx, nt_errstr(status),
+                  info ? " +info" : "", location);
 
        if (unread_bytes) {
                /* Recvfile error. Drain incoming socket. */