[ckan-changes] commit/ckan: kindly: [api] add better error logging

Bitbucket commits-noreply at bitbucket.org
Sat Oct 29 18:40:55 UTC 2011


1 new commit in ckan:


https://bitbucket.org/okfn/ckan/changeset/e07a44ebcc5a/
changeset:   e07a44ebcc5a
branch:      feature-1371-task-status-logic-layer
user:        kindly
date:        2011-10-29 20:40:41
summary:     [api] add better error logging
affected #:  1 file

diff -r fbdc6eb0a6504755f82a8e039e7873017dd6d000 -r e07a44ebcc5a4490265009f9aae315316400e155 ckan/controllers/api.py
--- a/ckan/controllers/api.py
+++ b/ckan/controllers/api.py
@@ -132,6 +132,7 @@
     def action(self, logic_function):
         function = get_action(logic_function)
         if not function:
+            log.error('Can\'t find logic function: %s' % logic_function)
             return self._finish_bad_request(
                 gettext('Action name not known: %s') % str(logic_function))
         
@@ -141,7 +142,7 @@
         try:
             request_data = self._get_request_data()
         except ValueError, inst:
-
+            log.error('Bad request data: %s' % str(inst))
             return self._finish_bad_request(
                 gettext('JSON Error: %s') % str(inst))
         try:

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list