debug(protocol): Log rejected messages in validator
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
This commit is contained in:
@@ -55,7 +55,7 @@ Decouple protocol parsing (framing/unframing) from semantic validation.
|
|||||||
|
|
||||||
(let ((type (let ((raw (proto-get msg :type))) (if (keywordp raw) (intern (string-upcase (string raw)) :keyword) raw))))
|
(let ((type (let ((raw (proto-get msg :type))) (if (keywordp raw) (intern (string-upcase (string raw)) :keyword) raw))))
|
||||||
(unless (member type '(:REQUEST :EVENT :RESPONSE :LOG :STATUS))
|
(unless (member type '(:REQUEST :EVENT :RESPONSE :LOG :STATUS))
|
||||||
(error "Communication Protocol Schema Error: Invalid message type '~a'" type))
|
(progn (harness-log "REJECTED MSG: ~s" msg) (error "Communication Protocol Schema Error: Invalid message type '~a'" type)))
|
||||||
|
|
||||||
(case type
|
(case type
|
||||||
(:REQUEST
|
(:REQUEST
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
(let ((type (let ((raw (proto-get msg :type))) (if (keywordp raw) (intern (string-upcase (string raw)) :keyword) raw))))
|
(let ((type (let ((raw (proto-get msg :type))) (if (keywordp raw) (intern (string-upcase (string raw)) :keyword) raw))))
|
||||||
(unless (member type '(:REQUEST :EVENT :RESPONSE :LOG :STATUS))
|
(unless (member type '(:REQUEST :EVENT :RESPONSE :LOG :STATUS))
|
||||||
(error "Communication Protocol Schema Error: Invalid message type '~a'" type))
|
(progn (harness-log "REJECTED MSG: ~s" msg) (error "Communication Protocol Schema Error: Invalid message type '~a'" type)))
|
||||||
|
|
||||||
(case type
|
(case type
|
||||||
(:REQUEST
|
(:REQUEST
|
||||||
|
|||||||
Reference in New Issue
Block a user