Skip to content

Instantly share code, notes, and snippets.

@tcoupland
Created April 28, 2012 11:40
Show Gist options
  • Save tcoupland/2518269 to your computer and use it in GitHub Desktop.
Save tcoupland/2518269 to your computer and use it in GitHub Desktop.
Simple compojure handler try finally
(defn logging [chain] (fn [req]
(println "before")
(try (chain req) (finally (println "after")))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment