You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2010/10/24 15:34:13 UTC

svn commit: r1026798 - /incubator/lcf/trunk/modules/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java

Author: kwright
Date: Sun Oct 24 13:34:13 2010
New Revision: 1026798

URL: http://svn.apache.org/viewvc?rev=1026798&view=rev
Log:
Add debugging logging for API.

Modified:
    incubator/lcf/trunk/modules/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java

Modified: incubator/lcf/trunk/modules/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java?rev=1026798&r1=1026797&r2=1026798&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java (original)
+++ incubator/lcf/trunk/modules/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java Sun Oct 24 13:34:13 2010
@@ -103,6 +103,7 @@ public class APIServlet extends HttpServ
     catch (ManifoldCFException e)
     {
       // We should only see this error if there's an API problem, not if there's an actual problem with the method being called.
+      Logging.api.debug("API error doing GET: "+e.getMessage(),e);
       response.sendError(response.SC_BAD_REQUEST,e.getMessage());
     }
   }
@@ -144,6 +145,7 @@ public class APIServlet extends HttpServ
     catch (ManifoldCFException e)
     {
       // We should only see this error if there's an API problem, not if there's an actual problem with the method being called.
+      Logging.api.debug("API error doing PUT: "+e.getMessage(),e);
       response.sendError(response.SC_BAD_REQUEST,e.getMessage());
     }
   }
@@ -187,6 +189,7 @@ public class APIServlet extends HttpServ
     catch (ManifoldCFException e)
     {
       // We should only see this error if there's an API problem, not if there's an actual problem with the method being called.
+      Logging.api.debug("API error doing POST: "+e.getMessage(),e);
       response.sendError(response.SC_BAD_REQUEST,e.getMessage());
     }
   }
@@ -220,6 +223,7 @@ public class APIServlet extends HttpServ
     catch (ManifoldCFException e)
     {
       // We should only see this error if there's an API problem, not if there's an actual problem with the method being called.
+      Logging.api.debug("API error doing DELETE: "+e.getMessage(),e);
       response.sendError(response.SC_BAD_REQUEST,e.getMessage());
     }
   }