mirror of https://github.com/status-im/timbre.git
[#216] Cljs console appender: don't log superfluous 'null' for raw output (@michaelcameron)
This commit is contained in:
parent
44ce7e8613
commit
eb78de58c8
|
@ -148,7 +148,9 @@
|
||||||
:msg_ ""
|
:msg_ ""
|
||||||
:?err nil))
|
:?err nil))
|
||||||
;; (<output> <raw-error> <raw-arg1> <raw-arg2> ...):
|
;; (<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)))
|
(.apply logger js/console (into-array args)))
|
||||||
(.call logger js/console (force (:output_ data)))))))
|
(.call logger js/console (force (:output_ data)))))))
|
||||||
|
|
Loading…
Reference in New Issue