Fork me on GitHub
#timbre
<
2023-06-06
>
souenzzo17:06:41

How to log errors in timbre? (log/info "a" {:b 42} (ex-info "c" {:d :e})) works, but it does not generate :?err key in middlewares.

jjttjj19:06:23

The exception should be the first arg

(log/info (ex-info "boom" {}) "log string")
It's described briefly here: https://ptaoussanis.github.io/timbre/taoensso.timbre.html under LOG DATA for *config*
:?err            ; First-arg platform error, or nil