     (binding [*base-config* cfg
               *config* b-cfg]
       (cljs.env/with-compiler-env cenv
+        (log/trace "Verbose config:" (with-out-str (pprint b-cfg)))
         (if pprint-config
-          (do (clojure.pprint/pprint b-cfg) b-cfg)
+          (do
+            (log/info ":pprint-config true - printing config:")
+            (print-conf b-cfg))
           (binding [cljs.repl/*repl-env* repl-env
                     figwheel.core/*config* (select-keys config [:hot-reload-cljs])]
             (let [fw-mode? (figwheel-mode? b-cfg)]

                      "<center><h3 style=\"color:red;\">index.html not found</h3></center>"))
        {:keys [pprint-config]} config
        repl-env (apply repl-env-fn (mapcat identity repl-env-options))]
    (if pprint-config
      (clojure.pprint/pprint cfg)
      (serve {:repl-env repl-env
              :repl-options repl-options
              :join? true}))))


(declare serve update-config)

(defn print-conf [cfg]
  (println "---------------------- Figwheel options ----------------------")
  (pprint (::config cfg))
  (println "---------------------- Compiler options ----------------------")
  (pprint (:options cfg)))

(defn serve-main-opt [repl-env-fn args b-cfg]
  (let [{:keys [::config repl-env-options repl-options] :as cfg}
        (-> b-cfg
