From abf1923fe257bd204523e7432fec1e0c9ecc9681 Mon Sep 17 00:00:00 2001 From: gered Date: Mon, 24 Mar 2014 19:13:26 -0400 Subject: [PATCH] log exceptions instead of just printing them --- src/blarg/handler.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blarg/handler.clj b/src/blarg/handler.clj index 33ff592..a3da18c 100644 --- a/src/blarg/handler.clj +++ b/src/blarg/handler.clj @@ -51,7 +51,7 @@ (try (handler request) (catch Throwable e - (.printStackTrace e) + (timbre/error e) {:status 500 :headers {"Content-Type" "text/html"} :body (layout/render-template request "error.html" {:error-info e})}))))