fix(cli): debug output despite no debug-mode

Let's not fall back on original `message` function, at the end of
`with-output-to!`s advice stack.
This commit is contained in:
Henrik Lissner 2022-09-19 17:33:25 +02:00
parent 869852aed9
commit 46d99917ba
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -276,7 +276,7 @@ based on the print level of the message. For example:
(lambda (message &rest args)
(when message
(let ((output (apply #'doom-print--format message args)))
(if (= doom-print--output-depth 0)
(if (<= doom-print--output-depth 1)
(doom-print output :level level :stream t)
(let ((doom-print--output-depth (1- doom-print--output-depth)))
(funcall old "%s" output)))