refactor(lib): tidy doom-log output
This commit reduces the debug log noise, makes it easier to read/parse/search, and soft-introduces a convention for doom-log messages, where they are prefixed with a unique identifier loosely named after it's running context or calling function. I haven't enforced it everywhere doom-log is used yet, but this is a start.
This commit is contained in:
parent
0c43c769ef
commit
6cac7b05b6
8 changed files with 68 additions and 66 deletions
8
bin/doom
8
bin/doom
|
@ -201,8 +201,7 @@ SEE ALSO:
|
|||
(when pager
|
||||
(setq doom-cli-pager pager))
|
||||
(when force?
|
||||
(setf (doom-cli-context-suppress-prompts-p context) t)
|
||||
(doom-log "User requested all prompts be suppressed"))
|
||||
(setf (doom-cli-context-suppress-prompts-p context) t))
|
||||
;; For these settings to take full effect, the script must be restarted:
|
||||
(when (or debug?
|
||||
profile
|
||||
|
@ -296,7 +295,6 @@ SEE ALSO:
|
|||
(defcli-group! :prefix (format "+%s" (cdr key))
|
||||
(load! cli-file path t)))))
|
||||
|
||||
(doom-log "Loading $DOOMDIR/cli.el")
|
||||
(load! cli-file doom-user-dir t))
|
||||
|
||||
;; Allow per-project Doom settings in .doom files.
|
||||
|
@ -305,9 +303,7 @@ SEE ALSO:
|
|||
((setq doomrc (getenv "DOOMRC"))
|
||||
(load! doomrc))
|
||||
((setq doomrc (locate-dominating-file default-directory ".doomrc"))
|
||||
(load! ".doomrc" doomrc)))
|
||||
(when doomrc
|
||||
(doom-log "Loaded doomrc: %s" doomrc)))))
|
||||
(load! ".doomrc" doomrc))))))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue