Skip to content

Commit

Permalink
tell the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
caumond committed Oct 6, 2023
1 parent c008143 commit 716c773
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/clj/automaton_core/configuration.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@

(defn read-param
([key-path default-value]
(cond (not (vector? key-path)) (do
#_(log/warn-format "Key path should be a vector. I found " key-path)
default-value)
(instance? mount.core.NotStartedState @conf-state) (do
#_ (log/warn-format "Unexpected error in configuration, component configuration is not started" @conf-state)
(cond (not (vector? key-path)) default-value
#_(do
(log/warn-format "Key path should be a vector. I found " key-path)
)
(instance? mount.core.NotStartedState @conf-state) default-value
#_(do
(log/warn-format "Unexpected error in configuration, component configuration is not started" @conf-state)
default-value)
:else (let [value (prot/read-conf-param @conf-state key-path)]
(log/trace "Read key-path " key-path " = " value)
Expand Down

0 comments on commit 716c773

Please sign in to comment.