diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-06-09 17:35:48 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-06-09 17:35:48 -0700 |
commit | 69e2512750dd75fce43a21226979996c3cd7da1d (patch) | |
tree | 691dca375161583393ce32bb0869cb7449255118 /src/com/p4square/grow/config/Config.java | |
parent | f4c2eb2dafbca580319a9f50ef4f5dd68d658702 (diff) |
Configuration Changes
Fixing a bug in the config class and updating all templates and pages to
use the dynamicRoot and staticRoot config values to prefix URLs.
Diffstat (limited to 'src/com/p4square/grow/config/Config.java')
-rw-r--r-- | src/com/p4square/grow/config/Config.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/p4square/grow/config/Config.java b/src/com/p4square/grow/config/Config.java index f5ebe3c..20d6ff5 100644 --- a/src/com/p4square/grow/config/Config.java +++ b/src/com/p4square/grow/config/Config.java @@ -49,6 +49,7 @@ public class Config { * @param domain The new domain. */ public void setDomain(String domain) { + cLog.info("Setting Config domain to " + domain); mDomain = domain; } @@ -99,17 +100,20 @@ public class Config { String result; final String domainKey = mDomain + "." + key; - result = mProperties.getProperty(domainKey, defaultValue); + result = mProperties.getProperty(domainKey); if (result != null) { + cLog.debug("Reading config for key = { " + key + " }. Got result = { " + result + " }"); return result; } final String globalKey = "*." + key; - result = mProperties.getProperty(globalKey, defaultValue); + result = mProperties.getProperty(globalKey); if (result != null) { + cLog.debug("Reading config for key = { " + key + " }. Got result = { " + result + " }"); return result; } + cLog.debug("Reading config for key = { " + key + " }. Got default value = { " + defaultValue + " }"); return defaultValue; } |