timbre

roklenarcic 2025-08-28T09:12:58.150659Z

I don’t know if this is timbre, but when it is logging larger data structures (malli schema errors), it seems to substitute vectors with #. e.g. :

{:path #,
           :in #,
           :schema
           [:enum #:decode{:json #object[clojure.core$keyword 0x52f41482 "clojure.core$keyword@52f41482"]} :pcs :mm :fl-oz :gallon :cl :quart :kg :dm ...],
           :value :bowl}
is there a way to disable that?

✅ 1
Peter Taoussanis 2025-08-28T09:25:05.436899Z

Hi there. Nothing intentional on Timbre’s end that’d do that afaik. But it’d be helpful for debugging if you could provide a specific logging call example.

roklenarcic 2025-08-28T09:41:22.192099Z

Hm it does seem to work on another project using timbre, but this is what I am seeing:

(log/error (ex-info "A" {:a {:b {:c {:d {:e [1 2 3]}}}}}))

clojure.lang.ExceptionInfo: A
    a: {:b {:c {#}}}
so some sort of max-level

roklenarcic 2025-08-28T09:42:23.986109Z

Ah apologies, seems to be c.t.logging being used

roklenarcic 2025-08-28T09:46:07.908019Z

On the second look this does use timbre

roklenarcic 2025-08-28T09:54:38.295959Z

Ok so this is Timbre version 6.7.1, it is using pretty-3.3.2, and :

(clj-commons.format.exceptions/format-exception (ex-info "A" {:a {:b {:c {:d {:e [1 2 3]}}}}}))
prints:
"clojure.core/eval    core.clj: 3232
               ...                 
    user/eval15850  REPL Input:     
 clojure.lang.ExceptionInfo: A
     a: {:b {:c {#}}}
 
 "

roklenarcic 2025-08-28T09:56:56.423059Z

my other project that works correctly is using timbre 6.2.2 and that one is using io.aviso.exception which doesn’t have this behaviour

roklenarcic 2025-08-28T10:00:47.194729Z

Ah I need to change clj-commons.format.exceptions/*print-level* , just a heads up to anyone migrating from 6.2.x to 6.7.x

🙏 2
Dave Conlin 2025-09-23T09:26:09.268039Z

Thanks

Dave Conlin 2025-09-23T09:26:50.304249Z

Came here looking to see if anyone had already worked out what caused this after we upgraded too, really appreciate the debugging and helpful description!

roklenarcic 2025-09-23T10:33:36.955279Z

A depenency of started using a different library which has a limit on print depth

Dave Conlin 2025-09-28T19:00:22.145819Z

yep, I got it, was just saying thanks for all the work 🙂

roklenarcic 2025-08-28T10:01:49.822949Z