         (>!! reply-to res))
       state)
     (catch Exception e
-      (prn [:error e])
+      (log/warnf e "babel-transform! failed")
       state)
     (finally
       (async/close! reply-to))))

  (:require [clojure.java.io :as io]
            [clojure.core.async :as async :refer (<!! >!!)]
            [shadow.build.log :as cljs-log]
            [shadow.cljs.util :as util])
  (:import (java.io PushbackReader Writer InputStreamReader BufferedReader IOException)))

(def worker-file

      ;; FIXME: errors need to go somewhere else, this is not reliable
      (.start (Thread. (bound-fn [] (pipe proc (.getErrorStream proc) *err*))))

      (assoc state
        :proc proc
        :in (PushbackReader. (io/reader (.getInputStream proc)))
        :out (io/writer (.getOutputStream proc)))
      )))
