You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ch...@apache.org on 2012/12/17 21:29:01 UTC
git commit: CLOUDSTACK-505: Added string cleaning to the start and
end debug log statements within the API servlet.
Updated Branches:
refs/heads/master 44da7b184 -> ba3050040
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/master
Commit: ba30500402ec2fbfb262cf8afd6052df67fbc439
Parents: 44da7b1
Author: Chip Childers <ch...@gmail.com>
Authored: Mon Dec 17 15:13:59 2012 -0500
Committer: Chip Childers <ch...@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();