From 99c6eb21eb7ff9a072b87d9d64324871ea7201f1 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 26 Jul 2014 20:15:03 +0200 Subject: fix logging, re-enable dumper layer7 output --- ebus-racket/ebus/layer2.rkt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ebus-racket/ebus/layer2.rkt') diff --git a/ebus-racket/ebus/layer2.rkt b/ebus-racket/ebus/layer2.rkt index 3309c16..192f7f5 100644 --- a/ebus-racket/ebus/layer2.rkt +++ b/ebus-racket/ebus/layer2.rkt @@ -3,6 +3,8 @@ (planet bzlib/parseq:1:3)) (define logger (make-logger 'ebus-layer2 (current-logger))) +(current-logger logger) + ;; Ebus SYN (define ebus-const-syn #xaa) ;; Ebus Escape-Sequence Start @@ -83,7 +85,7 @@ (define syn ((make-reader ebus-sync #:sof? #f #:eof? #f) input-port)) (define paket ((make-reader parse-ebus-paket #:sof? #f #:eof? #f) input-port)) (cond ((not (false? syn)) - (log-message logger 'debug (format "drop ~s x SYN (~s)" syn ebus-const-syn) #t))) + (log-debug "drop ~s x SYN (~s)" syn ebus-const-syn))) (cond ((not (false? paket)) paket) ((eof-object? (peek-byte input-port)) @@ -91,7 +93,7 @@ (else ;; skip one byte (let ([byte (read-byte input-port)]) - (log-message logger 'debug (format "drop ~s 0x~x" byte byte) #t)) + (log-debug "drop ~s 0x~x" byte byte)) (read-ebus input-port)))) (provide -- cgit v1.2.1