Update of /var/cvs/src/org/mmbase/util/functions
In directory james.mmbase.org:/tmp/cvs-serv13179/functions

Modified Files:
        FunctionSets.java 
Log Message:
lowered some log


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/functions


Index: FunctionSets.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/functions/FunctionSets.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- FunctionSets.java   26 Jun 2008 16:40:26 -0000      1.32
+++ FunctionSets.java   28 Jul 2008 16:22:33 -0000      1.33
@@ -36,7 +36,7 @@
  * @author Daniël Ockeloen
  * @author Michiel Meeuwissen
  * @since  MMBase-1.8
- * @version $Id: FunctionSets.java,v 1.32 2008/06/26 16:40:26 michiel Exp $
+ * @version $Id: FunctionSets.java,v 1.33 2008/07/28 16:22:33 michiel Exp $
  */
 public class FunctionSets {
 
@@ -141,7 +141,7 @@
                         try {
                             String setName     = n.getAttribute("name");
                             if (functionSets.containsKey(setName)) {
-                                log.warn("The function-set '" + setName + "' 
did exist already");
+                                log.debug("The function-set '" + setName + "' 
did exist already, while reading " + u);
                             }
                             String setResource = n.getAttribute("resource");
                             if (setResource.equals("")) setResource = 
n.getAttribute("file"); // deprecated, it's not necessarily a file
@@ -238,7 +238,10 @@
                     }
                     SetFunction fun = new SetFunction(functionName, 
parameters, returnType, functionClass, methodName, 
SetFunction.Type.valueOf(type.toUpperCase()));
                     fun.setDescription(description);
-                    functionSet.addFunction(fun);
+                    Function prev = functionSet.addFunction(fun);
+                    if (prev != null && ! (prev.equals(fun))) {
+                        log.warn("Replaced " + prev + " with " + fun + " in 
function set " + functionSet);
+                    }
                 } catch (Exception e) {
                     log.error(e.getMessage(), e);
                 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to