File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/com/kroo/typeset/logback Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
" Simple JSON layout component for Logback Classic, with Clojure and SLF4J 2+
3
3
key value attribute support."
4
4
(:require [jsonista.core :as j])
5
- (:import (ch.qos.logback.classic.spi ILoggingEvent ThrowableProxy ThrowableProxyUtil)
5
+ (:import (ch.qos.logback.classic.spi ILoggingEvent IThrowableProxy ThrowableProxy ThrowableProxyUtil)
6
6
(ch.qos.logback.core CoreConstants)
7
7
(java.time Instant)
8
8
(java.util HashMap List Map Map$Entry)
97
97
(if t
98
98
(recur (conj! acc (ex-data t)) (.getCause t))
99
99
(persistent! acc)))]
100
- (if (every? nil? ex-datas)
101
- nil
102
- ex-datas))
100
+ (if (every? nil? ex-datas)
101
+ nil
102
+ ex-datas))
103
103
(ex-data t)))
104
104
105
105
(defn- log-typeset-error
156
156
(when-not (.isEmpty markers)
157
157
; ; TODO: markers vs. tags?
158
158
(.put m " markers" (mapv #(.getName ^Marker %) markers)))))
159
- (when-let [tp (and (:include-exception opts)
160
- (.getThrowableProxy event))]
159
+ (when-let [^IThrowableProxy tp (and (:include-exception opts)
160
+ (.getThrowableProxy event))]
161
161
(when-let [exd (and (:include-ex-data opts)
162
162
(not (.isCyclic tp))
163
163
(instance? ThrowableProxy tp)
You can’t perform that action at this time.
0 commit comments