usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [2/6] git commit: fix props registration
Date Tue, 29 Jul 2014 14:13:58 GMT
fix props registration


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

Branch: refs/heads/master
Commit: ff2b82907ab16108fae779a5a6e4bf0fdb3a49f9
Parents: bb60001
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Fri Jul 18 15:06:10 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Fri Jul 18 15:06:10 2014 -0600

----------------------------------------------------------------------
 .../java/org/apache/usergrid/metrics/MetricsFactory.java     | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/ff2b8290/stack/core/src/main/java/org/apache/usergrid/metrics/MetricsFactory.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/metrics/MetricsFactory.java b/stack/core/src/main/java/org/apache/usergrid/metrics/MetricsFactory.java
index c5dbf1e..e9888e9 100644
--- a/stack/core/src/main/java/org/apache/usergrid/metrics/MetricsFactory.java
+++ b/stack/core/src/main/java/org/apache/usergrid/metrics/MetricsFactory.java
@@ -48,14 +48,6 @@ public class MetricsFactory {
 
     @PostConstruct
     void init() {
-        properties = new Properties();
-        try {
-            properties.load(Thread.currentThread()
-                    .getContextClassLoader()
-                    .getResourceAsStream("usergrid.properties"));
-        } catch (Exception e) {
-            LOG.error("Could not load props","");
-        }
         registry = new MetricRegistry();
         String badHost = "badhost";
         String metricsHost = properties.getProperty("usergrid.metrics.graphite.host", badHost);


Mime
View raw message