diff --git a/src/taoensso/timbre.cljc b/src/taoensso/timbre.cljc index bd57cdee..90b9f4c0 100644 --- a/src/taoensso/timbre.cljc +++ b/src/taoensso/timbre.cljc @@ -412,8 +412,13 @@ (when-let [err ?err] (when-let [ef (get output-opts :error-fn default-output-error-fn)] (when-not (get output-opts :no-stacktrace?) ; Back compatibility - (str enc/system-newline - (ef data))))))))) + (enc/catching + (str enc/system-newline (ef data)) _ + (str + enc/system-newline + "[TIMBRE WARNING]: `error-fn` failed, falling back to `pr-str`:" + enc/system-newline + (enc/catching (pr-str err) _ "")))))))))) (defn- default-arg->str-fn [x] (enc/cond