Skip to content

Commit

Permalink
[fix] JS console appender unintentionally duplicating raw args
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Feb 22, 2024
1 parent dbf8481 commit 9ec4e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/taoensso/timbre.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
(default-output-fn data)))

([data]
(let [{:keys [level ?err #_vargs msg_ ?ns-str ?file hostname_
(let [{:keys [level ?err #_vargs #_msg_ ?ns-str ?file hostname_
timestamp_ ?line #_?column output-opts]}
data]

Expand Down
4 changes: 2 additions & 2 deletions src/taoensso/timbre/appenders/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@
(let [output
((:output-fn data)
(assoc data
:msg_ ""
:?err nil))
:msg-type nil
:?err nil))

args ; (<output> ?<raw-error> <raw-arg1> <raw-arg2> ...)
(let [vargs (:vargs data)]
Expand Down

0 comments on commit 9ec4e3c

Please sign in to comment.