cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject git commit: refs/heads/master - CloudStack-1267: initialize log4j in agent main()
Date Wed, 20 Feb 2013 00:32:45 GMT
Updated Branches:
  refs/heads/master 817548bac -> 2b76114bb


CloudStack-1267: initialize log4j in agent main()


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

Branch: refs/heads/master
Commit: 2b76114bba7e25356b9d16d83839bb513374d1a3
Parents: 817548b
Author: Kelven Yang <kelveny@gmail.com>
Authored: Tue Feb 19 19:21:53 2013 -0500
Committer: Kelven Yang <kelveny@gmail.com>
Committed: Tue Feb 19 19:24:20 2013 -0500

----------------------------------------------------------------------
 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/2b76114b/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..e736978 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