Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move printing to happen on the same thread as the render

  • Loading branch information...
commit f42bf2325978a18aadc09c6236adbd2e1c68b684 1 parent 80781e9
David Greenberg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/spyscope/core.clj
4 src/spyscope/core.clj
View
@@ -73,10 +73,10 @@
value# (pretty-render-value f#
~(assoc (meta form)
::form (list 'quote form)))]
+ (when ~(::print? (meta form))
+ (print (str (:message value#) "\n")))
(send-off trace-storage
(fn [{g# :generation t# :trace :as storage#}]
- (when ~(::print? (meta form))
- (println (:message value#)))
(assoc storage#
:trace
(conj t# (assoc value#
Please sign in to comment.
Something went wrong with that request. Please try again.