summaryrefslogtreecommitdiff
path: root/ebus-racket/ebus/layer2.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'ebus-racket/ebus/layer2.rkt')
-rw-r--r--ebus-racket/ebus/layer2.rkt6
1 files changed, 4 insertions, 2 deletions
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