log exceptions instead of just printing them
This commit is contained in:
parent
beb60e3321
commit
abf1923fe2
|
@ -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})}))))
|
||||||
|
|
Reference in a new issue