Log proper stack trace in case toggling repo throws

This commit is contained in:
Teemu Patja 2017-03-06 14:25:26 +02:00
parent e6def5b3f8
commit bb9ae35fd5
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 1 additions and 2 deletions

View File

@ -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))))))