 (def format-messages (comp (partial map error-msg-format) get-essential-messages))
 
 (defn default-on-compile-fail [{:keys [formatted-exception exception-data] :as ed}]
-  (.log js/console "%cFigwheel: Compile Exception" log-style)
+  (.debug js/console "Figwheel: Compile Exception")
   (doseq [msg (format-messages exception-data)]
     (.log js/console msg))
   ed)
 
 (defn default-before-load [files]
-  (.log js/console "%cFigwheel: loading files" log-style)
+  (.debug js/console "Figwheel: loading files")
   #_(.log js/console (prn-str (mapv :file files)))
   files)
 
 (defn default-on-cssload [files]
-  (.log js/console "%cFigwheel: loaded CSS files" log-style)
+  (.debug js/console "Figwheel: loaded CSS files")
   (.log js/console (prn-str (map :file files)))
   files)
 

   [cljs.core.async.macros :refer [go go-loop]]
   [figwheel.client :refer [defonce]]))

(def log-style "color:rgb(0,128,0);")

(defn log [{:keys [debug]} & args]
  (when debug
    (.log js/console (to-array args))))

   (let [files'  (add-request-urls opts files) 
         res     (<! (load-all-js-files files'))]
     (when (not-empty res)
       (.debug js/console "Figwheel: loaded these files")
       (.log js/console (prn-str (map :file res)))
       (<! (timeout 10)) ;; wait a beat before callback
       (apply on-jsload [res])))))
