From bb9ae35fd54b4c977006e4de38453d8ae114fa5d Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Mon, 6 Mar 2017 14:25:26 +0200 Subject: [PATCH] Log proper stack trace in case toggling repo throws --- src/clj/commiteth/routes/services.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/clj/commiteth/routes/services.clj b/src/clj/commiteth/routes/services.clj index 2da22e4..679493b 100644 --- a/src/clj/commiteth/routes/services.clj +++ b/src/clj/commiteth/routes/services.clj @@ -81,8 +81,7 @@ {:enabled (not is-enabled)} (select-keys params [:id :full_name])))) (catch Exception e - (log/info "exception when enabling repo " - (.getMessage e)) + (log/error "exception when enabling repo" e) (repositories/update-repo repo-id {:state -1}) (internal-server-error))))))