Skip to content

Commit

Permalink
[fix] Add missing 12-arity -log! (may affect AOT users) (@borkdude)
Browse files Browse the repository at this point in the history
The 12 arity case was accidentally removed - kindly reported by
Michiel Borkent.
  • Loading branch information
ptaoussanis committed Oct 30, 2024
1 parent 0c75d9c commit 201678b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/taoensso/timbre.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,10 @@

;; Back compatible arities for AOT tools,
;; Ref. <https://github.com/fzakaria/slf4j-timbre/issues/20>
([config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data ] (-log! config level ?ns-str ?file ?line nil msg-type ?err vargs_ ?base-data nil false nil nil))
([config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data callsite-id ] (-log! config level ?ns-str ?file ?line nil msg-type ?err vargs_ ?base-data callsite-id false nil nil))
([config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data callsite-id spying? ] (-log! config level ?ns-str ?file ?line nil msg-type ?err vargs_ ?base-data callsite-id spying? nil nil))
([config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data ] (-log! config level ?ns-str ?file ?line nil msg-type ?err vargs_ ?base-data nil false nil nil))
([config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data callsite-id ] (-log! config level ?ns-str ?file ?line nil msg-type ?err vargs_ ?base-data callsite-id false nil nil))
([config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data callsite-id spying? ] (-log! config level ?ns-str ?file ?line nil msg-type ?err vargs_ ?base-data callsite-id spying? nil nil))
([config level ?ns-str ?file ?line ?column msg-type ?err vargs_ ?base-data callsite-id spying? ] (-log! config level ?ns-str ?file ?line ?column msg-type ?err vargs_ ?base-data callsite-id spying? nil nil))
([config level ?ns-str ?file ?line ?column msg-type ?err vargs_ ?base-data callsite-id spying? instant may-log]
(when (or may-log (may-log? :trace level ?ns-str config))
(let [instant (or instant (enc/now-dt*))
Expand Down

0 comments on commit 201678b

Please sign in to comment.