mirror of
https://github.com/taoensso/telemere.git
synced 2026-02-10 13:53:13 +00:00
Compare commits
2 commits
f9041f9563
...
38f4246145
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38f4246145 | ||
|
|
ff31519d8f |
2 changed files with 6 additions and 7 deletions
|
|
@ -219,15 +219,15 @@
|
|||
|
||||
(if (or common-attrs trace-attrs)
|
||||
(let [ab (Attributes/builder)]
|
||||
(when-let [ns (get signal :ns)] (.put ab "ns" (str ns)))
|
||||
(when-let [line (get signal :line)] (.put ab "line" (long line)))
|
||||
(when-let [ns (get signal :ns)] (.put ab "ns" (str ns)))
|
||||
(when-let [line (enc/get-in* signal [:coords 0])] (.put ab "line" (long line)))
|
||||
(when-let [attrs common-attrs] (put-attrs! ab attrs))
|
||||
(when-let [attrs trace-attrs] (put-attrs! ab attrs))
|
||||
(.build ab))
|
||||
|
||||
;; Common case
|
||||
(when-let [ns (get signal :ns)]
|
||||
(if-let [line (get signal :line)]
|
||||
(when-let [ns (get signal :ns)]
|
||||
(if-let [line (enc/get-in* signal [:coords 0])]
|
||||
(Attributes/of ak-ns ns, ak-line (long line))
|
||||
(Attributes/of ak-ns ns)))))))
|
||||
|
||||
|
|
|
|||
|
|
@ -200,9 +200,8 @@
|
|||
:ctx+ context
|
||||
|
||||
:ns ?ns-str
|
||||
:file ?file
|
||||
:line ?line
|
||||
:column ?column
|
||||
:coords (when ?line [?line ?column])
|
||||
:file ?file ; Non-standard, goes to kvs
|
||||
|
||||
:error ?err
|
||||
:msg (force output_)})))})
|
||||
|
|
|
|||
Loading…
Reference in a new issue