0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -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 levels
{:off Level/OFF
:shout Level/SHOUT
:error Level/SEVERE
:warn Level/WARNING
:severe Level/SEVERE
:warning Level/WARNING
:warn Level/WARNING
:info Level/INFO
:config Level/CONFIG
:debug Level/FINE
:trace Level/FINER
:fine Level/FINE
:finer Level/FINER
:trace Level/FINER
:finest Level/FINEST
:all Level/ALL})
(def colors
@ -87,7 +92,8 @@
:info "INF"
:warn "WRN"
:warning "WRN"
:error "ERR"))
:error "ERR"
(subs (.-name ^Level (get levels l)) 0 3)))
(defn- make-log-record
[level message name exception]