Commit 77c1f90e authored by Changpeng Liu's avatar Changpeng Liu
Browse files

iscsi: change ERRLOG to DEBUGLOG for read socket error



Since spdk_iscsi_conn_read_data() can print error log, so we
don't need to print again in the caller, existing code will
print error log for LOGOUT and DISCOVERY cases.

Fix issue #845.

Change-Id: I547d3d667b6412ab6a59c9b401d0f28c5026307d
Signed-off-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460110


Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarPaul Luse <paul.e.luse@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 5228002c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1354,7 +1354,7 @@ iscsi_conn_handle_incoming_pdus(struct spdk_iscsi_conn *conn)
		if (rc == 0) {
			break;
		} else if (rc < 0) {
			SPDK_ERRLOG("Failed to read pdu, error=%d\n", rc);
			SPDK_DEBUGLOG(SPDK_LOG_ISCSI, "Failed to read pdu, error=%d\n", rc);
			return SPDK_ISCSI_CONNECTION_FATAL;
		}