Don't log hooks
Produces a lot of logging noise, and Doom already injects context into errors that occur in hooks.
This commit is contained in:
parent
f523830a0e
commit
cbb0ce9f85
1 changed files with 0 additions and 1 deletions
|
@ -521,7 +521,6 @@ unreadable. Returns the names of envvars that were changed."
|
||||||
(defun doom-run-hook (hook)
|
(defun doom-run-hook (hook)
|
||||||
"Run HOOK (a hook function) with better error handling.
|
"Run HOOK (a hook function) with better error handling.
|
||||||
Meant to be used with `run-hook-wrapped'."
|
Meant to be used with `run-hook-wrapped'."
|
||||||
(doom-log "Running doom hook: %s" hook)
|
|
||||||
(condition-case-unless-debug e
|
(condition-case-unless-debug e
|
||||||
(funcall hook)
|
(funcall hook)
|
||||||
(error
|
(error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue