From 05cd4a771be442885940e8eb9faec5f098ca327c Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Sat, 15 Apr 2017 12:27:56 +0200 Subject: [PATCH] [#216] PR housekeeping --- src/taoensso/timbre/appenders/core.cljx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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)))))))