mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix: ensure empty DEBUG envvar is ignored
Also ensures the envvar is removed if it's empty, and doesn't permeate
an empty DEBUG when executing doom/reload.
Amend: 8c7711920e
Close: #8310
Co-authored-by: AjaiKN <AjaiKN@users.noreply.github.com>
This commit is contained in:
parent
bf528be137
commit
71d9ceead4
3 changed files with 8 additions and 5 deletions
|
|
@ -41,7 +41,7 @@ TYPE should be a keyword of any of the known doom-*-error errors (e.g. :font,
|
|||
(defvar doom-log-level
|
||||
(if init-file-debug
|
||||
(if-let* ((level (getenv-internal "DEBUG"))
|
||||
(level (string-to-number level))
|
||||
(level (if (string-empty-p level) 1 (string-to-number level)))
|
||||
((not (zerop level))))
|
||||
level
|
||||
2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue