You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2015/11/29 05:50:53 UTC
logging-log4j2 git commit: LOG4J2-435 more debug info
Repository: logging-log4j2
Updated Branches:
refs/heads/master 4fe09d24c -> 9b3635c44
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/master
Commit: 9b3635c44fed3a4107451c6c877aa140f8dd6612
Parents: 4fe09d2
Author: rpopma <rp...@apache.org>
Authored: Sun Nov 29 13:51:12 2015 +0900
Committer: rpopma <rp...@apache.org>
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() + ")";
}
/**