Skip to content

Commit

Permalink
[mod] Remove support for long-deprecated :?err_, :vargs_ delays i…
Browse files Browse the repository at this point in the history
…n 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.
  • Loading branch information
ptaoussanis committed Feb 27, 2023
1 parent 814b49d commit edd4ee7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/taoensso/timbre.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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?})
Expand All @@ -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 <data>)"
Expand Down

0 comments on commit edd4ee7

Please sign in to comment.