0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

🐛 Minor unexpected exception fix on logging module.

This commit is contained in:
Andrey Antukh 2020-10-22 13:34:29 +02:00 committed by Hirunatan
parent ff9345b1db
commit 560ad5b280

View file

@ -39,16 +39,21 @@
(def root (get-logger :root)) (def root (get-logger :root))
(def levels (def levels
{:off Level/OFF {:off Level/OFF
:shout Level/SHOUT
:error Level/SEVERE :error Level/SEVERE
:warn Level/WARNING :severe Level/SEVERE
:warning Level/WARNING :warning Level/WARNING
:warn Level/WARNING
:info Level/INFO :info Level/INFO
:config Level/CONFIG
:debug Level/FINE :debug Level/FINE
:trace Level/FINER
:fine Level/FINE :fine Level/FINE
:finer Level/FINER :finer Level/FINER
:trace Level/FINER
:finest Level/FINEST
:all Level/ALL}) :all Level/ALL})
(def colors (def colors
@ -87,7 +92,8 @@
:info "INF" :info "INF"
:warn "WRN" :warn "WRN"
:warning "WRN" :warning "WRN"
:error "ERR")) :error "ERR"
(subs (.-name ^Level (get levels l)) 0 3)))
(defn- make-log-record (defn- make-log-record
[level message name exception] [level message name exception]