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 2016/09/21 17:31:40 UTC

logging-log4j2 git commit: No need to call File.toString() to pass to the status logger.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 5a8ff8f4e -> 044ea14c4


No need to call File.toString() to pass to the status logger.

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

Branch: refs/heads/master
Commit: 044ea14c47bb0fb293da23702e0b79a550d54f1f
Parents: 5a8ff8f
Author: Gary Gregory <gg...@apache.org>
Authored: Wed Sep 21 10:31:36 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Wed Sep 21 10:31:36 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/044ea14c/log4j-core/src/main/java/org/apache/logging/log4j/core/util/WatchManager.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/WatchManager.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/WatchManager.java
index 7b05aa1..b0c6080 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/WatchManager.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/WatchManager.java
@@ -98,7 +98,7 @@ public class WatchManager extends AbstractLifeCycle {
                 final FileMonitor fileMonitor = entry.getValue();
                 final long lastModfied = file.lastModified();
                 if (fileModified(fileMonitor, lastModfied)) {
-                    logger.info("File {} was modified", file.toString());
+                    logger.info("File {} was modified", file);
                     fileMonitor.lastModified = lastModfied;
                     fileMonitor.fileWatcher.fileModified(file);
                 }