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: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460110 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
5228002c13
commit
77c1f90e98
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user