Anonymous avatar Anonymous committed b6ca829

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

git-svn-id: http://svn.opensymphony.com/svn/propertyset/trunk@145 bf3cbcdd-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;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.