mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-17 09:51:12 +00:00
[fix] Trace formatting: properly format nil ids
This commit is contained in:
parent
d61f6c25e3
commit
68a894edab
1 changed files with 4 additions and 2 deletions
|
|
@ -551,9 +551,11 @@
|
||||||
(comment ((signal-preamble-fn) (tel/with-signal (tel/event! ::ev-id))))
|
(comment ((signal-preamble-fn) (tel/with-signal (tel/event! ::ev-id))))
|
||||||
|
|
||||||
(defn- format-parent [ns {:keys [id uid]}]
|
(defn- format-parent [ns {:keys [id uid]}]
|
||||||
{:id (symbol (format-id ns id)) :uid uid})
|
(if id
|
||||||
|
{:id (symbol (format-id ns id)), :uid uid}
|
||||||
|
{:id (symbol (format-id ns id))}))
|
||||||
|
|
||||||
(comment (str (format-parent (str *ns*) {:id ::foo})))
|
(comment (str (format-parent (str *ns*) {:id ::id1 :uid "uid1"})))
|
||||||
|
|
||||||
(defn signal-content-fn
|
(defn signal-content-fn
|
||||||
"Experimental, subject to change.
|
"Experimental, subject to change.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue