logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1584463 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
Date Thu, 03 Apr 2014 23:21:53 GMT
Author: mattsicker
Date: Thu Apr  3 23:21:52 2014
New Revision: 1584463

URL: http://svn.apache.org/r1584463
Log:
Update status logging.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java?rev=1584463&r1=1584462&r2=1584463&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
Thu Apr  3 23:21:52 2014
@@ -59,7 +59,7 @@ public final class FileUtils {
             try {
                 uri = new File(uri.getPath()).toURI();
             } catch (final Exception ex) {
-                LOGGER.warn("Invalid URI " + uri);
+                LOGGER.warn("Invalid URI {}", uri);
                 return null;
             }
         }
@@ -70,7 +70,7 @@ public final class FileUtils {
             }
             return new File(URLDecoder.decode(fileName, "UTF8"));
         } catch (final MalformedURLException ex) {
-            LOGGER.warn("Invalid URL " + uri, ex);
+            LOGGER.warn("Invalid URL {}", uri, ex);
         } catch (final UnsupportedEncodingException uee) {
             LOGGER.warn("Invalid encoding: UTF8", uee);
         }



Mime
View raw message