Return-Path: Delivered-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Received: (qmail 14575 invoked from network); 24 Oct 2010 13:35:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Oct 2010 13:35:12 -0000 Received: (qmail 78985 invoked by uid 500); 24 Oct 2010 13:35:12 -0000 Delivered-To: apmail-incubator-connectors-commits-archive@incubator.apache.org Received: (qmail 78923 invoked by uid 500); 24 Oct 2010 13:35:10 -0000 Mailing-List: contact connectors-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-commits@incubator.apache.org Received: (qmail 78915 invoked by uid 99); 24 Oct 2010 13:35:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Oct 2010 13:35:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Oct 2010 13:35:09 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5ECB4238890A; Sun, 24 Oct 2010 13:34:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1026798 - /incubator/lcf/trunk/modules/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java Date: Sun, 24 Oct 2010 13:34:13 -0000 To: connectors-commits@incubator.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101024133413.5ECB4238890A@eris.apache.org> 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()); } }