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:
parent
ff9345b1db
commit
560ad5b280
1 changed files with 9 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue