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:
Henrik Lissner 2021-07-11 12:54:41 -04:00
parent f523830a0e
commit cbb0ce9f85

View File

@ -521,7 +521,6 @@ unreadable. Returns the names of envvars that were changed."
(defun doom-run-hook (hook)
"Run HOOK (a hook function) with better error handling.
Meant to be used with `run-hook-wrapped'."
(doom-log "Running doom hook: %s" hook)
(condition-case-unless-debug e
(funcall hook)
(error