init: Improve logging

When generating the log messages when loading config files generate
more realistic file names.
This commit is contained in:
finga 2025-03-10 17:46:33 +01:00
parent 7df5b0e507
commit e6a1229e83

View file

@ -86,9 +86,9 @@ symbols, which are converted to strings, and suffixed with \".el\"."
wl wl
yaml)) yaml))
(message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path) (message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s.el" config-snippets config-snippet-path)
(dolist (snippet config-snippets) (dolist (snippet config-snippets)
(message "snippet: %s" snippet) (message "snippet: %s.el" snippet)
(dolist (dir config-snippet-path) (dolist (dir config-snippet-path)
(message "dir: %s" dir) (message "dir: %s" dir)
(let ((file-name (expand-file-name (concat dir (if (symbolp snippet) (let ((file-name (expand-file-name (concat dir (if (symbolp snippet)
@ -97,4 +97,4 @@ symbols, which are converted to strings, and suffixed with \".el\"."
(message "loading file") (message "loading file")
(if (file-readable-p file-name) (if (file-readable-p file-name)
(load-file file-name) (load-file file-name)
(message "Config snippet not found: %s" snippet))))) (message "Config snippet not found: %s.el" snippet)))))