fix(lib): prevent autoload failure at startup

In some edge cases, an early call to doom-log will cause an autoload
error because of one or more of the following is true:

- The autoloads file hasn't been generated or loaded,
- The autoloads file is out of date (especially relevant after
  b9933e6),
- doom-cli hasn't loaded lib/files eagerly yet.

To avoid this, and due to how prolific doom-log's uses are, and how
trivial the dependency is, I simply remove the dependency.

Amend: b9933e6637
This commit is contained in:
Henrik Lissner 2022-07-31 13:24:11 +02:00
parent 615848e3a7
commit 55736ac2a6
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -193,7 +193,7 @@ debug mode is off."
((when-let (file (ignore-errors (file!)))
(format "[%s] "
(file-relative-name
file (doom-path (file-name-directory file) "../")))))
file (expand-file-name "../" (file-name-directory file))))))
(time)))
,output)
,@args)