clojure-uk 2026-07-06

Morning 🙂

I'm sure I asked this before, but if you have a thread-last threading macro, and you want to insert some debug so you can see what's flowing through the chain, is there a idomatic way of doing that?

Can you do something with clojure.tools.logging/spy ?

👀 1

Yup, that's good. Ta.

I'm thinking something like this: (->> 3 (+ 4) log/spy (* 2))

Default log level is debug, but you can override:

(->> 3 (+ 4) (log/spy :info) (* 2))

thank you, just tested it and works wonderfully. Thank you for the hint 🙂

👍 1

also good old hashp should do https://github.com/weavejester/hashp

👍 2