more compiler/cm log message cleanup
This commit is contained in:
parent
d83fbf81f3
commit
3636e35480
|
@ -50,7 +50,7 @@
|
||||||
(struct compile-event (timestamp path action) #:prefab)
|
(struct compile-event (timestamp path action) #:prefab)
|
||||||
(define (log-compile-event path action)
|
(define (log-compile-event path action)
|
||||||
(when (log-level? cm-logger 'info 'compiler/cm)
|
(when (log-level? cm-logger 'info 'compiler/cm)
|
||||||
(log-message cm-logger 'info (format "~a: ~a" action path)
|
(log-message cm-logger 'info (format "~a~a: ~a" (get-indent-string) action path)
|
||||||
(compile-event (current-inexact-milliseconds) path action))))
|
(compile-event (current-inexact-milliseconds) path action))))
|
||||||
|
|
||||||
(define manager-compile-notify-handler (make-parameter void))
|
(define manager-compile-notify-handler (make-parameter void))
|
||||||
|
@ -187,13 +187,17 @@
|
||||||
(unless (or (eq? t void)
|
(unless (or (eq? t void)
|
||||||
(and (equal? t default-manager-trace-handler)
|
(and (equal? t default-manager-trace-handler)
|
||||||
(not (log-level? cm-logger 'debug))))
|
(not (log-level? cm-logger 'debug))))
|
||||||
(t (string-append (build-string (indent)
|
(t (string-append (get-indent-string)
|
||||||
(λ (x)
|
|
||||||
(if (= 2 (modulo x 3))
|
|
||||||
#\|
|
|
||||||
#\space)))
|
|
||||||
(apply format fmt args))))))
|
(apply format fmt args))))))
|
||||||
|
|
||||||
|
(define (get-indent-string)
|
||||||
|
(build-string (indent)
|
||||||
|
(λ (x)
|
||||||
|
(if (and (= 2 (modulo x 3))
|
||||||
|
(not (= x (- (indent) 1))))
|
||||||
|
#\|
|
||||||
|
#\space))))
|
||||||
|
|
||||||
(define (get-deps code path)
|
(define (get-deps code path)
|
||||||
(define ht
|
(define ht
|
||||||
(let loop ([code code] [ht (hash)])
|
(let loop ([code code] [ht (hash)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user