From eb78de58c8de16a43620d6fbb14d044c5b48ba1b Mon Sep 17 00:00:00 2001 From: Michael Cameron Date: Fri, 20 Jan 2017 10:32:09 -0600 Subject: [PATCH] [#216] Cljs console appender: don't log superfluous 'null' for raw output (@michaelcameron) --- src/taoensso/timbre/appenders/core.cljx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/taoensso/timbre/appenders/core.cljx b/src/taoensso/timbre/appenders/core.cljx index 4acdc17..e544dc6 100644 --- a/src/taoensso/timbre/appenders/core.cljx +++ b/src/taoensso/timbre/appenders/core.cljx @@ -148,7 +148,9 @@ :msg_ "" :?err nil)) ;; ( ...): - args (->> (:vargs data) (cons (:?err data)) (cons output))] + args (cond->> (:vargs data) + (:?err data) (cons (:?err data)) + true (cons output))] (.apply logger js/console (into-array args))) (.call logger js/console (force (:output_ data)))))))