Skip to content

Commit

Permalink
Change log level in configuration
Browse files Browse the repository at this point in the history
Co-authored-by: Iain Wood <[email protected]>
  • Loading branch information
gmsvalente and Iain Wood committed Feb 28, 2024
1 parent 1f14dc6 commit 600262f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/xiana/logging.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(ns xiana.logging
(:require
[taoensso.timbre :as timbre]

Check failure on line 3 in src/xiana/logging.clj

View workflow job for this annotation

GitHub Actions / clj-kondo check

src/xiana/logging.clj#L3

[consistent-alias] Inconsistent alias. Expected log instead of 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)

0 comments on commit 600262f

Please sign in to comment.