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