cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [21/40] git commit: refs/heads/master - Enable logging in systemvm.
Date Tue, 05 Mar 2013 02:09:46 GMT
Enable logging in systemvm.

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

Branch: refs/heads/master
Commit: 0f3a3a9a6d84c97e53769cca3b76d07ad273c4c9
Parents: 525fe14
Author: Min Chen <min.chen@citrix.com>
Authored: Wed Feb 20 10:58:18 2013 -0800
Committer: Min Chen <min.chen@citrix.com>
Committed: Wed Feb 20 10:58:18 2013 -0800

----------------------------------------------------------------------
 agent/src/com/cloud/agent/AgentShell.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0f3a3a9a/agent/src/com/cloud/agent/AgentShell.java
----------------------------------------------------------------------
diff --git a/agent/src/com/cloud/agent/AgentShell.java b/agent/src/com/cloud/agent/AgentShell.java
index 0e02093..7297ab2 100644
--- a/agent/src/com/cloud/agent/AgentShell.java
+++ b/agent/src/com/cloud/agent/AgentShell.java
@@ -48,6 +48,7 @@ import com.cloud.agent.dao.StorageComponent;
 import com.cloud.agent.dao.impl.PropertiesStorage;
 import com.cloud.host.Host;
 import com.cloud.resource.ServerResource;
+import com.cloud.utils.LogUtils;
 import com.cloud.utils.NumbersUtil;
 import com.cloud.utils.ProcessUtil;
 import com.cloud.utils.PropertiesUtil;
@@ -611,6 +612,8 @@ public class AgentShell implements IAgentShell {
 
     public static void main(String[] args) {
         try {
+            LogUtils.initLog4j("log4j-cloud.xml");
+
             AgentShell shell = new AgentShell();
             shell.init(args);
             shell.start();


Mime
View raw message