From edd4ee7682f1d557f0b8e1b320a83e19e20d81dc Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Mon, 5 Dec 2022 12:18:20 +0100 Subject: [PATCH] [mod] Remove support for long-deprecated `:?err_`, `:vargs_` delays in log data Relevant only to folks with custom appenders and/or middleware. This commit removes the `:?err_` and `:vargs_` keys from Timbre's log data map. Instead, just use `:?err` and `:vargs`. See the `*config*` docstring for more info on Timbre's log data map. --- src/taoensso/timbre.cljc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/taoensso/timbre.cljc b/src/taoensso/timbre.cljc index ffe12a61..b502d7f1 100644 --- a/src/taoensso/timbre.cljc +++ b/src/taoensso/timbre.cljc @@ -629,9 +629,8 @@ #?(:clj :hostname_) #?(:clj (delay (get-hostname))) :error-level? (#{:error :fatal} level) :?err ?err - :?err_ (delay ?err) ; Deprecated - :msg-type msg-type ; Undocumented - :?msg-fmt ?msg-fmt ; Undocumented + :msg-type msg-type ; Undocumented + :?msg-fmt ?msg-fmt ; Undocumented :?meta ?meta :vargs vargs :spying? spying?}) @@ -648,7 +647,6 @@ (when-let [data ?data] ; Not filtered by middleware (let [{:keys [vargs]} data - data (assoc data :vargs_ (delay vargs)) ; Deprecated data (enc/assoc-nx data :msg_ (delay ((protected-fn "Timbre error when calling (msg-fn )"