Closed publicimageltd closed 3 months ago
You can probably get around this by making log-wrapper
a macro too. I'll look at the bug.
I can't bind macros with binding
, can I? That's what forced me initially to write a wrapper, i.e.
(binding [*some-dyn-var* timbre/info] ....
Won't compile ("Can't take the value of a macro").
But I can use println for the time being, that's ok.
Thanks, I really appreciate the work you put in this!
version babashka v1.3.188
platform
linux
problem
When I bind the macro
timbre/log!
in a function, babashka throws an error while doing the same thing with regular clojure works.Doing it with clojure (using
deps-try com.taoensso/timbre
):With babashka:
expected behavior I was expecting both to work the same way.
The backgound is that I want to bind the logging function to a dynamic variable, but timbre/log! is a macro, so I need to wrap it.
I have no idea what causes the exception.