LOG4J2-435 more debug info

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

Branch: refs/heads/LOG4J-1181
Commit: 9b3635c44fed3a4107451c6c877aa140f8dd6612
Parents: 4fe09d2
Author: rpopma <[email protected]>
Authored: Sun Nov 29 13:51:12 2015 +0900
Committer: rpopma <[email protected]>
Committed: Sun Nov 29 13:51:12 2015 +0900

----------------------------------------------------------------------
 .../core/appender/rolling/action/PathWithAttributes.java      | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9b3635c4/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/PathWithAttributes.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/PathWithAttributes.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/PathWithAttributes.java
index 836d271..21ce14e 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/PathWithAttributes.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/PathWithAttributes.java
@@ -42,7 +42,7 @@ public class PathWithAttributes implements 
BasicFileAttributes {
     public PathWithAttributes(final Path path, final BasicFileAttributes 
attributes) {
         this.path = Objects.requireNonNull(path, "path");
         this.attributes = Objects.requireNonNull(attributes, "attributes");
-        
+
         // take snapshot of attributes, it may be just a view whose values 
change
         this.lastModifiedTime = attributes.lastModifiedTime();
         this.lastAccessTime = attributes.lastAccessTime();
@@ -54,10 +54,11 @@ public class PathWithAttributes implements 
BasicFileAttributes {
         this.size = attributes.size();
         this.fileKey = attributes.fileKey();
     }
-    
+
     @Override
     public String toString() {
-        return path + " (created: " + creationTime + ", modified: " + 
lastModifiedTime + ")";
+        return path + " (created: " + creationTime + ", modified: " + 
lastModifiedTime + ", attrMod="
+                + attributes.lastModifiedTime() + ")";
     }
 
     /**

Reply via email to