Hello, I recently updated to Re-frame version 0.8.0. I have transitioned 
the majority of my custom middleware to interceptors but am having trouble 
with one.  I created an application specific logging utility that sends 
information to Elasticsearch. The error logging middleware looked as follows

(defn log-error
  [handler]
  (fn log-error-handler
    [db v]
    (try
        (handler db v)
        (catch :default e
          (do
            (error (.-message e) (.-stack e))
            (throw e))))))

This middleware was being included with a few others:
(def standard-middlewares [log-error log-params trim-v])

But now that I am not calling the handler function directly I am unsure how 
to catch and log errors from an interceptor. Could anyone please point me 
in the right direction?

-- 
You received this message because you are subscribed to the Google Groups 
"Reagent-Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reagent-project+unsubscr...@googlegroups.com.
To post to this group, send email to reagent-project@googlegroups.com.
Visit this group at https://groups.google.com/group/reagent-project.
For more options, visit https://groups.google.com/d/optout.

Reply via email to