From 600262f1bb9a2a9421cd06a5f231eaa642166b5a Mon Sep 17 00:00:00 2001 From: Gustavo Valente Date: Wed, 28 Feb 2024 08:39:10 -0300 Subject: [PATCH 1/2] Change log level in configuration Co-authored-by: Iain Wood --- src/xiana/logging.clj | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/xiana/logging.clj diff --git a/src/xiana/logging.clj b/src/xiana/logging.clj new file mode 100644 index 00000000..3c202355 --- /dev/null +++ b/src/xiana/logging.clj @@ -0,0 +1,10 @@ +(ns xiana.logging + (:require + [taoensso.timbre :as timbre] + [xiana.config :as config])) + +(defn set-level + [cfg] + (when-let [level (-> (config/config) :logging/timbre-config :min-level)] + (timbre/set-min-level! level)) + cfg) From 1b3361a900f4cfb4ac09ef1d2a429c22a64eb08b Mon Sep 17 00:00:00 2001 From: Gustavo Valente Date: Wed, 28 Feb 2024 08:45:25 -0300 Subject: [PATCH 2/2] Fix cljstyle and clj-kondo Co-authored-by: Iain Wood --- src/xiana/logging.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xiana/logging.clj b/src/xiana/logging.clj index 3c202355..ae657c83 100644 --- a/src/xiana/logging.clj +++ b/src/xiana/logging.clj @@ -1,10 +1,10 @@ (ns xiana.logging (:require - [taoensso.timbre :as timbre] - [xiana.config :as config])) + [taoensso.timbre :as log] + [xiana.config :as config])) (defn set-level [cfg] (when-let [level (-> (config/config) :logging/timbre-config :min-level)] - (timbre/set-min-level! level)) + (log/set-min-level! level)) cfg)