                                           :timestamp (du/date-to-str (t/now))
                                           :user username})))
             (catch Throwable e
-              (log/error "Failed to post test metrics " e test-metrics-url)))))
+              (log/error e "Failed to post test metrics " test-metrics-url)))))
       (log-running-tests)))
 
   (defmethod report :summary [m]

  (let [test-meta (meta testing-var)
        namespace (ns-name (:ns test-meta))
        name (:name test-meta)]
    {:full-name (str name "/" namespace)
     :name name
     :namespace namespace}))


      (println "\nRan" (:test m) "tests containing"
               (+ (:pass m) (:fail m) (:error m)) "assertions.")
      (println (:fail m) "failures," (:error m) "errors.")
      (try
        (spit test-metrics-failed-tests-file (json/write-str {:failed-tests @failed-tests}))
        (catch Exception e
          (log/error e "Failed to write out failed tests " test-metrics-failed-tests-file @failed-tests)))
      (when http-client (http/stop-client! http-client)))))

;; Overrides the default reporter for :error so that the ex-data of
