diff options
author | Ebus-at-dockstar <ebus@dockstar> | 2014-07-25 22:13:55 +0200 |
---|---|---|
committer | Ebus-at-dockstar <ebus@dockstar> | 2014-07-25 22:13:55 +0200 |
commit | f6675ccdd7a5997def3c4656f0e2c5dbbbed1fc8 (patch) | |
tree | 893a37289de684b95a6184c528e5c9c8547e7197 /ebus-racket/ebus/layer7.rkt | |
parent | cfb0c10631bbbd31b525e7992b59de06d3c2e550 (diff) | |
download | ebus-alt-f6675ccdd7a5997def3c4656f0e2c5dbbbed1fc8.tar.gz ebus-alt-f6675ccdd7a5997def3c4656f0e2c5dbbbed1fc8.zip |
embed xexpr-path
Diffstat (limited to 'ebus-racket/ebus/layer7.rkt')
-rw-r--r-- | ebus-racket/ebus/layer7.rkt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ebus-racket/ebus/layer7.rkt b/ebus-racket/ebus/layer7.rkt index 9393ec8..c7fb228 100644 --- a/ebus-racket/ebus/layer7.rkt +++ b/ebus-racket/ebus/layer7.rkt @@ -3,7 +3,7 @@ racket/bool racket/function xml - xexpr-path + "xexpr-path/main.rkt" "layer2.rkt") (define logger (make-logger 'ebus-layer7 (current-logger))) @@ -44,7 +44,7 @@ (define payload (layer2-ebus-paket-payload ebus-paket)) (for/list ([decoder decoders]) (decoder payload))) - (else (void (log-message logger 'warning + (else (void (log-message logger 'warning (format "Unknown Paket from source ~s: ~s" (layer2-ebus-paket-source ebus-paket) ebus-paket) #t))))) @@ -53,7 +53,7 @@ (define name (string-append paket-id "." (xexpr-path-first '((name)) field))) (define offset (string->number (xexpr-path-first '((offset)) field))) (define decoder (hash-ref decoder-table type #f)) - (cond ((false? decoder) (void (log-message logger 'warning (format "No decoder for type ~s" type)))) + (cond ((false? decoder) (void (log-message logger 'warning (format "No decoder for type ~s" type) #t))) (else (curry (car decoder) name field offset)))) (define decoder-table |