You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2013/02/20 01:22:28 UTC
git commit: refs/heads/4.1 - CloudStack-1267: initialize log4j in
agent main()
Updated Branches:
refs/heads/4.1 81db0c207 -> f91bf6b73
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/f91bf6b7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f91bf6b7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f91bf6b7
Branch: refs/heads/4.1
Commit: f91bf6b73a9fbd61c93ea79a57616f5935fdb792
Parents: 81db0c2
Author: Kelven Yang <ke...@gmail.com>
Authored: Tue Feb 19 19:21:53 2013 -0500
Committer: Kelven Yang <ke...@gmail.com>
Committed: Tue Feb 19 19:22:10 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/f91bf6b7/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();