brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rich...@apache.org
Subject [1/5] git commit: Logging in BrooklynFeatureEnablement.setDefault
Date Tue, 08 Jul 2014 17:00:37 GMT
Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 73dcb1d8d -> 35dce9b92


Logging in BrooklynFeatureEnablement.setDefault


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

Branch: refs/heads/master
Commit: 09ade725201712836b343b2fbf82f5edfb04f028
Parents: 45a3b5f
Author: Aled Sage <aled.sage@gmail.com>
Authored: Fri Jul 4 12:56:49 2014 +0100
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Tue Jul 8 15:00:29 2014 +0100

----------------------------------------------------------------------
 .../java/brooklyn/internal/BrooklynFeatureEnablement.java    | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/09ade725/core/src/main/java/brooklyn/internal/BrooklynFeatureEnablement.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/internal/BrooklynFeatureEnablement.java b/core/src/main/java/brooklyn/internal/BrooklynFeatureEnablement.java
index 9bfc188..d5fe674 100644
--- a/core/src/main/java/brooklyn/internal/BrooklynFeatureEnablement.java
+++ b/core/src/main/java/brooklyn/internal/BrooklynFeatureEnablement.java
@@ -2,6 +2,9 @@ package brooklyn.internal;
 
 import java.util.Map;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 import com.google.common.collect.Maps;
 
 /**
@@ -14,6 +17,8 @@ import com.google.common.collect.Maps;
  */
 public class BrooklynFeatureEnablement {
 
+    private static final Logger LOG = LoggerFactory.getLogger(BrooklynFeatureEnablement.class);
+
     public static final String FEATURE_POLICY_PERSISTENCE_PROPERTY = "brooklyn.experimental.feature.policyPersistence";
     
     public static final String FEATURE_ENRICHER_PERSISTENCE_PROPERTY = "brooklyn.experimental.feature.enricherPersistence";
@@ -68,6 +73,9 @@ public class BrooklynFeatureEnablement {
                 String rawVal = System.getProperty(property);
                 if (rawVal == null) {
                     FEATURE_ENABLEMENTS.put(property, val);
+                    LOG.debug("Default enablement of "+property+" set to "+val);
+                } else {
+                    LOG.debug("Not setting default enablement of "+property+" to "+val+",
because system property is "+rawVal);
                 }
             }
         }


Mime
View raw message