nil logging level should be < :trace logging level

This commit is contained in:
Peter Taoussanis 2013-03-14 00:45:23 +07:00
parent 5864673b47
commit 03d2c0c242
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@
;;;; Define and sort logging levels
(def ^:private ordered-levels [:trace :debug :info :warn :error :fatal :report])
(def ^:private scored-levels (assoc (zipmap ordered-levels (range)) nil 0))
(def ^:private scored-levels (assoc (zipmap ordered-levels (next (range))) nil 0))
(defn error-level? [level] (boolean (#{:error :fatal} level)))