Update of /var/cvs/src/org/mmbase/core/util
In directory james.mmbase.org:/tmp/cvs-serv27551
Modified Files:
SystemProperties.java
Log Message:
clarified some logging only
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/core/util
Index: SystemProperties.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/core/util/SystemProperties.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- SystemProperties.java 4 Aug 2008 17:15:45 -0000 1.2
+++ SystemProperties.java 24 Nov 2008 13:09:49 -0000 1.3
@@ -18,6 +18,7 @@
* This class will search for the mmbaseroot machinename in the value of the
"mmservers" property
* @since MMBase-1.9
* @author Nico Klasens
+ * @version $Id: SystemProperties.java,v 1.3 2008/11/24 13:09:49 michiel Exp $
*/
public class SystemProperties {
@@ -25,12 +26,14 @@
private final static String PROPERTY_BUILDER = "systemproperties";
- private final static String DEFAULT = "value";
private final static String DEVEVELOPMENT = "development";
private final static String TEST = "test";
private final static String ACCEPTANCE = "acceptance";
private final static String PRODUCTION = "production";
+ private final static String DEFAULT = "value";
+
+
private static final String COMPONENT = "component";
private static final String KEY = "key";
@@ -115,8 +118,7 @@
private static void setEnvironment() {
- String propertyKey = MMSERVERS_PROPERTY;
- MMObjectNode mmservers = getPropertyNode(propertyKey);
+ MMObjectNode mmservers = getPropertyNode(MMSERVERS_PROPERTY);
if (mmservers != null) {
String machineName = MMBase.getMMBase().getMachineName();
if (isServerInEnv(machineName,
mmservers.getStringValue(PRODUCTION))) {
@@ -140,10 +142,9 @@
+ " not in Property 'mmservers'. Using default value");
warnOnce = false;
}
- }
- else {
+ } else {
if (warnOnce) {
- log.warn("Property 'mmservers' missing. Using default value");
+ log.warn("Property '" + MMSERVERS_PROPERTY + "' missing. Using
default value for environment='" + environment + "'");
warnOnce = false;
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs