Commits

Anonymous committed b6ca829

Replaced System.out.println() with log.debug()

git-svn-id: http://svn.opensymphony.com/svn/propertyset/trunk@145bf3cbcdd-1c1a-0410-9a68-d6f521e3fa7b

Comments (0)

Files changed (1)

src/java/com/opensymphony/module/propertyset/file/PropertiesFilePropertySet.java

 import com.opensymphony.util.XMLUtils;
 
 import org.w3c.dom.Document;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import java.io.*;
 
 public class PropertiesFilePropertySet extends MemoryPropertySet {
     //~ Instance fields ////////////////////////////////////////////////////////
 
+    protected static Log log = LogFactory.getLog(PropertiesFilePropertySet.class);
     private File file;
 
     //~ Methods ////////////////////////////////////////////////////////////////
             int dot = key.lastIndexOf('.');
             int type = Integer.parseInt(key.substring(dot + 1));
             String name = key.substring(0, dot);
-            System.out.println("key=" + key + " type=" + type + " name=" + name);
+            if (log.isDebugEnabled()) {
+                log.debug("key=" + key + " type=" + type + " name=" + name);
+            }
 
             String data = (String) entry.getValue();
             Object value = null;