mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Attempting to understand why the configuration doesn't load.
This commit is contained in:
parent
324f26dbf7
commit
dad380e0d9
1 changed files with 11 additions and 1 deletions
|
|
@ -111,9 +111,19 @@
|
|||
file is read (if it is specified and present), but that individual
|
||||
values can be overridden by environment variables."
|
||||
(try
|
||||
(timbre/info (str "Reading configuration from " config-file-path))
|
||||
(let [file-contents (try
|
||||
(read-string (slurp config-file-path))
|
||||
(catch Exception _ {}))
|
||||
(catch Exception x
|
||||
(timbre/error
|
||||
(str
|
||||
"Failed to read configuration from "
|
||||
config-file-path
|
||||
" because: "
|
||||
(type x)
|
||||
"; "
|
||||
(.getMessage x)))
|
||||
{}))
|
||||
config (merge
|
||||
file-contents
|
||||
(transform-map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue