 
    Repl in a pod, inspired by https://github.com/juxt/edge"
   [options]
-  (util/dbug "Options:\n%s\n" (with-out-str (pprint options)))
   (let [pod-env (dev-backend-pod-env (:env options))
         pod (future (pod/make-pod pod-env))
         {:keys [port init-ns]} (:repl options)]
     (comp
      (with-pass-thru _
-       (util/dbug "Options:\n%s\n" (with-out-str (pprint options)))
-       (util/dbug "Pod env:\n%s\n" (with-out-str (pprint pod-env))))
+       (util/dbug "[dev-backend] options:\n%s\n" (with-out-str (pprint options)))
+       (util/dbug "[dev-backend] pod env:\n%s\n" (with-out-str (pprint pod-env))))
      (with-pass-thru _
        (pod/with-eval-in @pod
          (require '[boot.pod :as pod])

    exclusions (assoc-in [:test :exclusions] exclusions)))

(defn test-backend
  "Run tests once for the backend (it uses clojure.test)."
  [options]
  (comp (with-pass-thru _
          (util/dbug "Options:\n%s\n" (with-out-str (pprint options)))
          (apply-options! options)
          (require 'adzerk.boot-test))
        (with-pre-wrap fs
          (let [test (resolve 'adzerk.boot-test/test)
                middleware (apply test (flatten (seq (:test options))))]
            ((middleware identity) fs)))))<% endif %>
<% if any frontend %>
(defn build-frontend

        cljs-build-deps (resolve 'adzerk.boot-cljs/deps)
        sass (resolve 'deraen.boot-sass/sass)
        serve (resolve 'pandeiro.boot-http/serve)]
    (comp (apply serve (mapcat identity (:serve options)))
          (built-in/watch)
          (version-file)
          (apply sass (mapcat identity (:sass options)))
          (apply reload (mapcat identity (:reload options)))
          (apply cljs-repl (mapcat identity (:cljs-repl options)))
          (apply cljs (mapcat identity (:cljs options)))
          (if (> @boot.util/*verbosity* 1)
            (built-in/show :fileset true)
            identity))))
