From 716c7734f464c0b5b5b978b44c695d2bd8d556df Mon Sep 17 00:00:00 2001 From: caumond Date: Sat, 7 Oct 2023 00:24:25 +0200 Subject: [PATCH] tell the commit --- src/clj/automaton_core/configuration.clj | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/clj/automaton_core/configuration.clj b/src/clj/automaton_core/configuration.clj index edda812e..e9f9c542 100644 --- a/src/clj/automaton_core/configuration.clj +++ b/src/clj/automaton_core/configuration.clj @@ -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)