Logging improved
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 30 Sep 2009 18:24:18 +0000 (18:24 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 30 Sep 2009 18:24:18 +0000 (18:24 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1158 d57e44dd-8a1f-0410-8b47-8ef2f437770f

iscsi-scst/usr/iscsid.c

index 0f7b82a..8df0dbc 100644 (file)
@@ -517,6 +517,8 @@ static void login_start(struct connection *conn)
                conn->tid = target->tid;
                if (config_initiator_access(conn->tid, conn->fd) ||
                    isns_scn_access(conn->tid, conn->fd, name)) {
+                       log_info("Initiator %s not allowed to connect to "
+                               "target %s", name, target_name);
                        rsp->status_class = ISCSI_STATUS_INITIATOR_ERR;
                        rsp->status_detail = ISCSI_STATUS_TGT_NOT_FOUND;
                        conn->state = STATE_EXIT;