You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/08/02 04:08:32 UTC

[18/44] git commit: don't log null response

don't log null response


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

Branch: refs/heads/vpc
Commit: 387fe57771ed6af6e7042c18e91b24097384c9b2
Parents: db7ace3
Author: Edison Su <su...@gmail.com>
Authored: Wed Aug 1 16:54:33 2012 -0700
Committer: Edison Su <su...@gmail.com>
Committed: Wed Aug 1 16:54:50 2012 -0700

----------------------------------------------------------------------
 agent/src/com/cloud/agent/Agent.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/387fe577/agent/src/com/cloud/agent/Agent.java
----------------------------------------------------------------------
diff --git a/agent/src/com/cloud/agent/Agent.java b/agent/src/com/cloud/agent/Agent.java
index 6db97aa..4bfd076 100755
--- a/agent/src/com/cloud/agent/Agent.java
+++ b/agent/src/com/cloud/agent/Agent.java
@@ -542,7 +542,10 @@ public class Agent implements HandlerFactory, IAgentControl {
             response = new Response(request, answers);
         } finally {
             if (s_logger.isDebugEnabled()) {
-                s_logger.debug(response != null ? response.toString() : "response is null");
+            	String responseMsg = response.toString();
+            	if (responseMsg != null) {
+            		s_logger.debug(response.toString());
+            	}
             }
 
             if (response != null) {