From 560ad5b28028bab1c9606ab651ecd644877e5271 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 22 Oct 2020 13:34:29 +0200 Subject: [PATCH] :bug: Minor unexpected exception fix on logging module. --- frontend/src/app/util/logging.cljs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/util/logging.cljs b/frontend/src/app/util/logging.cljs index 2837216e2..6ea7392a3 100644 --- a/frontend/src/app/util/logging.cljs +++ b/frontend/src/app/util/logging.cljs @@ -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]