Skip to content

Commit

Permalink
Fix set-level to pure function (#285)
Browse files Browse the repository at this point in the history
* Fix set-level to pure function

Co-authored-by: Iain Wood <iain.wood@flexiana.com>

* Apply cljstyle and clj-kondo

Co-authored-by: Iain Wood <iain.wood@flexiana.com>

---------

Co-authored-by: Iain Wood <iain.wood@flexiana.com>
  • Loading branch information
gmsvalente and Iain Wood authored Mar 7, 2024
1 parent fb15e7d commit ab1bbd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xiana/logging.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
(ns xiana.logging
(:require
[taoensso.timbre :as log]
[xiana.config :as config]))
[taoensso.timbre :as log]))

(defn set-level
[cfg]
(when-let [level (-> (config/config) :logging/timbre-config :min-level)]
(when-let [level (-> cfg :logging/timbre-config :min-level)]
(log/set-min-level! level))
cfg)

0 comments on commit ab1bbd9

Please sign in to comment.