[#157] Hotfix: profile macro refering to removed var

This commit is contained in:
Peter Taoussanis 2016-02-28 12:07:36 +07:00
parent 551b1e9dbf
commit 10c5ebc426
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@
[level id & body]
`(let [{result# :result stats# :stats} (with-pdata ~level ~@body)]
(when stats#
(timbre/log1-macro timbre/*config* ~level :f
(timbre/log! ~level :f
["Profiling: %s\n%s" (fq-keyword ~id) (format-stats stats#)]
{:profile-stats stats#}))
{:?base-data {:profile-stats stats#}}))
result#))
(defmacro sampling-profile