You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2013/07/18 02:48:52 UTC
git commit: updated refs/heads/master to 52e6ef7
Updated Branches:
refs/heads/master cb2a84241 -> 52e6ef7eb
Added exception in error log
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/52e6ef7e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/52e6ef7e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/52e6ef7e
Branch: refs/heads/master
Commit: 52e6ef7eb89218f8d88993d3908bdf59179834f6
Parents: cb2a842
Author: ahuang <al...@citrix.com>
Authored: Wed Jul 17 17:48:39 2013 -0700
Committer: ahuang <al...@citrix.com>
Committed: Wed Jul 17 17:48:57 2013 -0700
----------------------------------------------------------------------
.../com/cloud/utils/component/ComponentContext.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/52e6ef7e/utils/src/com/cloud/utils/component/ComponentContext.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/component/ComponentContext.java b/utils/src/com/cloud/utils/component/ComponentContext.java
index 5c5194c..6fc25b2 100644
--- a/utils/src/com/cloud/utils/component/ComponentContext.java
+++ b/utils/src/com/cloud/utils/component/ComponentContext.java
@@ -49,16 +49,16 @@ import com.cloud.utils.mgmt.ManagementBean;
public class ComponentContext implements ApplicationContextAware {
private static final Logger s_logger = Logger.getLogger(ComponentContext.class);
- private static ApplicationContext s_appContext;
+ private static ApplicationContext s_appContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) {
s_logger.info("Setup Spring Application context");
- s_appContext = applicationContext;
- }
+ s_appContext = applicationContext;
+ }
- public static ApplicationContext getApplicationContext() {
- return s_appContext;
+ public static ApplicationContext getApplicationContext() {
+ return s_appContext;
}
public static void initComponentsLifeCycle() {
@@ -89,7 +89,7 @@ public class ComponentContext implements ApplicationContextAware {
try {
entry.getValue().check();
} catch(Throwable e) {
- s_logger.error("System integrity check failed. Refuse to startup");
+ s_logger.error("System integrity check failed. Refuse to startup", e);
System.exit(1);
}
}
@@ -211,7 +211,7 @@ public class ComponentContext implements ApplicationContextAware {
} catch (Exception e) {
return (T)instance;
}
- }
+ }
return (T)instance;
}