log exceptions instead of just printing them

This commit is contained in:
Gered 2014-03-24 19:13:26 -04:00
parent beb60e3321
commit abf1923fe2

View file

@ -51,7 +51,7 @@
(try (try
(handler request) (handler request)
(catch Throwable e (catch Throwable e
(.printStackTrace e) (timbre/error e)
{:status 500 {:status 500
:headers {"Content-Type" "text/html"} :headers {"Content-Type" "text/html"}
:body (layout/render-template request "error.html" {:error-info e})})))) :body (layout/render-template request "error.html" {:error-info e})}))))