mirror of https://github.com/status-im/timbre.git
Fix: `spy` double-evaluation
This commit is contained in:
parent
a7b41a6f2d
commit
bbbaf036b5
|
@ -319,7 +319,7 @@
|
|||
([level expr] `(spy ~level '~expr ~expr))
|
||||
([level name expr]
|
||||
`(try
|
||||
(let [result# ~expr] (log ~level ~name ~expr) result#)
|
||||
(let [result# ~expr] (log ~level ~name result#) result#)
|
||||
(catch Exception e#
|
||||
(log ~level '~expr (str "\n" (stacktrace/pst-str e#)))
|
||||
(throw e#)))))
|
||||
|
|
Loading…
Reference in New Issue