Skip to content

Commit

Permalink
[#321] Make level>= a public implementation detail
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Oct 1, 2020
1 parent f4c721f commit 836bf55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/taoensso/timbre.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@
(defn- valid-level->int [x] (or (level->int x) (throw (ex-info err {:given x :type (type x)})))))

(let [valid-level->int valid-level->int]
(defn- #?(:clj level>= :cljs ^:boolean level>=) [x y]
(>= ^long (valid-level->int x) ^long (valid-level->int y))))
(defn #?(:clj level>= :cljs ^:boolean level>=)
"Implementation detail."
[x y] (>= ^long (valid-level->int x) ^long (valid-level->int y))))

(comment (qb 1e6 (level>= :info :trace))) ; 89.77

Expand Down

0 comments on commit 836bf55

Please sign in to comment.