commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1527249 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/io/DefaultFileSystem.java
Date Sat, 28 Sep 2013 19:46:57 GMT
Author: oheger
Date: Sat Sep 28 19:46:57 2013
New Revision: 1527249

URL: http://svn.apache.org/r1527249
Log:
DefaultFileSystem now uses the logger defined by the base class.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/io/DefaultFileSystem.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/io/DefaultFileSystem.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/io/DefaultFileSystem.java?rev=1527249&r1=1527248&r2=1527249&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/io/DefaultFileSystem.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/io/DefaultFileSystem.java
Sat Sep 28 19:46:57 2013
@@ -28,8 +28,6 @@ import java.net.URL;
 import java.net.URLConnection;
 
 import org.apache.commons.configuration.ConfigurationException;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 
 /**
  * FileSystem that uses java.io.File or HttpClient
@@ -39,11 +37,6 @@ import org.apache.commons.logging.LogFac
  */
 public class DefaultFileSystem extends FileSystem
 {
-    /**
-     * The Log for diagnostic messages.
-     */
-    private Log log = LogFactory.getLog(DefaultFileSystem.class);
-
     @Override
     public InputStream getInputStream(URL url) throws ConfigurationException
     {
@@ -147,9 +140,9 @@ public class DefaultFileSystem extends F
                 catch (Exception e)
                 {
                     // simply ignore it and return null
-                    if (log.isDebugEnabled())
+                    if (getLogger().isDebugEnabled())
                     {
-                        log.debug(String.format("Could not determine URL for "
+                        getLogger().debug(String.format("Could not determine URL for "
                                 + "basePath = %s, fileName = %s.", basePath,
                                 fileName), e);
                     }
@@ -253,9 +246,9 @@ public class DefaultFileSystem extends F
         }
         catch (IOException e)
         {
-            if (log.isDebugEnabled())
+            if (getLogger().isDebugEnabled())
             {
-                log.debug("Could not locate file " + fileName + " at " + basePath + ": "
+ e.getMessage());
+                getLogger().debug("Could not locate file " + fileName + " at " + basePath
+ ": " + e.getMessage());
             }
             return null;
         }



Mime
View raw message