setup: improve UX

This commit is contained in:
LordMZTE 2023-05-04 23:26:57 +02:00
parent 587ce3eed0
commit 1e0508b410
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -15,7 +15,10 @@
(define (display-function-call func args)
(when (log-calls)
(printf "\x1b[1;30m(~s ~a)\x1b[0m\n" func (apply ~a #:separator " " args))))
(fprintf (current-error-port)
"\x1b[1;30m(\x1b[1;32m~s \x1b[1;33m~a\x1b[1;30m)\x1b[0m\n"
func
(apply ~a #:separator " " args))))
;; Defines an alias to a function which will log it's parameters on invokation.
(define-syntax-rule (define-logging name func)