mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user