You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2020/02/19 23:51:31 UTC

[logging-log4j2] branch release-2.x updated: Add messages for debugging

This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new a8f45e0  Add messages for debugging
a8f45e0 is described below

commit a8f45e0b21be955b381ce1f8758e48b220cfd9d4
Author: Ralph Goers <Ra...@dslextreme.com>
AuthorDate: Wed Feb 19 16:51:16 2020 -0700

    Add messages for debugging
---
 .../log4j/core/appender/rolling/RollingAppenderOnStartupTest.java       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderOnStartupTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderOnStartupTest.java
index 2e7be84..e15c621 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderOnStartupTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderOnStartupTest.java
@@ -97,6 +97,8 @@ public class RollingAppenderOnStartupTest {
                 List<String> lines = Files.lines(path).collect(Collectors.toList());
                 assertTrue("No header present for " + path.toFile().getName(), lines.get(0).startsWith("<!DOCTYPE HTML"));
                 Files.delete(path);
+                System.out.println(path.toFile().toString() + " was deleted");
+                System.out.println(path.toFile().toString() + (path.toFile().exists() ? " exists" : " does not exist"));
             }
             assertTrue("File did not roll", rolled);
         }