diff --git a/src/taoensso/timbre/appenders/core.cljx b/src/taoensso/timbre/appenders/core.cljx index e544dc6..cca7ec3 100644 --- a/src/taoensso/timbre/appenders/core.cljx +++ b/src/taoensso/timbre/appenders/core.cljx @@ -142,15 +142,18 @@ (if (or (:raw-console? data) (get-in data [:?meta :raw-console?])) ; Undocumented + (let [output ((:output-fn data) (assoc data :msg_ "" :?err nil)) - ;; ( ...): - args (cond->> (:vargs data) - (:?err data) (cons (:?err data)) - true (cons output))] + + args ; ( ? ...) + (let [vargs (:vargs data)] + (if-let [err (:?err data)] + (cons output (cons err vargs)) + (cons output vargs)))] (.apply logger js/console (into-array args))) (.call logger js/console (force (:output_ data)))))))