       ;; that might compile.
       development-mode (fs/wrap-with-filesystem-cache (:cache-folder twixt-options) resolver)
       production-mode mem/wrap-with-sticky-cache
-      development-mode mem/wrap-with-invalidating-cache)))
+      development-mode mem/wrap-with-invalidating-cache
+      true wrap-with-tracing)))
 
 (defn wrap-with-twixt-setup
   "Wraps a handler with another handler that provides the :twixt key in the request object.

             [less :as less]
             [memory-cache :as mem]
             [utils :as utils]
             [tracker :as tracker]]
            [ring.util
             [response :as r]
             [mime-type :as mime]]))

  "Uses get-asset-uris to get a single URI for a single asset path."
  [twixt asset-path]
  (first (get-asset-uris twixt asset-path)))

(defn wrap-with-tracing
  "The first middleware in the asset pipeline, used to trace the constuction of the asset."
  [handler]
  (fn tracer [asset-path context]
    (t/trace
      #(format "Accessing asset `%s'" asset-path)
      (handler asset-path context))))

(defn default-asset-pipeline
  "Sets up the default pipeline in either development mode or production mode."
