You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/05/03 21:27:58 UTC

logging-log4j2 git commit: Move debug statement up to show what File.exist() is testing...

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 2d00e2957 -> fb85d7486


Move debug statement up to show what File.exist() is testing...

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/fb85d748
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/fb85d748
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/fb85d748

Branch: refs/heads/master
Commit: fb85d7486fb74208f535ad5eabf1dc58e5b0a514
Parents: 2d00e29
Author: Gary Gregory <ga...@gmail.com>
Authored: Sun May 3 12:27:55 2015 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sun May 3 12:27:55 2015 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/core/util/FileUtils.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/fb85d748/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
index 7dcf569..a81f056 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/FileUtils.java
@@ -69,8 +69,8 @@ public final class FileUtils {
         final String charsetName = Constants.UTF_8.name();
         try {
             String fileName = uri.toURL().getFile();
+            System.out.println("Testing FileName:  " + fileName);
             if (new File(fileName).exists()) { // LOG4J2-466
-                System.out.println("FileName:  " + fileName);
                 return new File(fileName); // allow files with '+' char in name
             }
             fileName = URLDecoder.decode(fileName, charsetName);