incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [10/50] [abbrv] git commit: CLOUDSTACK-505: Added string cleaning to the start and end debug log statements within the API servlet.
Date Wed, 19 Dec 2012 22:04:27 GMT
CLOUDSTACK-505: Added string cleaning to the start and end debug
log statements within the API servlet.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/ba305004
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/ba305004
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/ba305004

Branch: refs/heads/ui-plugins
Commit: ba30500402ec2fbfb262cf8afd6052df67fbc439
Parents: 44da7b1
Author: Chip Childers <chip.childers@gmail.com>
Authored: Mon Dec 17 15:13:59 2012 -0500
Committer: Chip Childers <chip.childers@gmail.com>
Committed: Mon Dec 17 15:13:59 2012 -0500

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiServlet.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ba305004/server/src/com/cloud/api/ApiServlet.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiServlet.java b/server/src/com/cloud/api/ApiServlet.java
index b5c4272..091bf18 100755
--- a/server/src/com/cloud/api/ApiServlet.java
+++ b/server/src/com/cloud/api/ApiServlet.java
@@ -36,6 +36,7 @@ import com.cloud.server.ManagementServer;
 import com.cloud.user.Account;
 import com.cloud.user.AccountService;
 import com.cloud.user.UserContext;
+import com.cloud.utils.StringUtils;
 import com.cloud.utils.component.ComponentLocator;
 import com.cloud.utils.exception.CloudRuntimeException;
 
@@ -126,7 +127,7 @@ public class ApiServlet extends HttpServlet {
         String reqStr = "";
         if (s_logger.isDebugEnabled()) {
             reqStr = auditTrailSb.toString() + " " + req.getQueryString();
-            s_logger.debug("===START=== " + reqStr);
+            s_logger.debug("===START=== " + StringUtils.cleanString(reqStr));
         }
         
         try {
@@ -343,7 +344,7 @@ public class ApiServlet extends HttpServlet {
         } finally {
             s_accessLogger.info(auditTrailSb.toString());
             if (s_logger.isDebugEnabled()) {
-                s_logger.debug("===END=== " + reqStr);
+                s_logger.debug("===END=== " + StringUtils.cleanString(reqStr));
             }
             // cleanup user context to prevent from being peeked in other request context
             UserContext.unregisterContext();


Mime
View raw message