[#216] Cljs console appender: don't log superfluous 'null' for raw output (@michaelcameron)

This commit is contained in:
Michael Cameron 2017-01-20 10:32:09 -06:00 committed by Peter Taoussanis
parent 44ce7e8613
commit eb78de58c8
1 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,9 @@
:msg_ ""
:?err nil))
;; (<output> <raw-error> <raw-arg1> <raw-arg2> ...):
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)))))))